Visual C++

Hi,
i am working in mein first visual interface in C++ (Visual Studio 2008), and I have a little doubt.
I have a Mainframe, where I defined, for example, ein variable type integer als public. If I use a second frame to get a value for this variable, for example, through a NumericUpDown, with the even OnClick in a AcceptButton i want to asignate the value of NumericUpDown to integer variable.
I use
MyNamespace::MainFrame::Intvar = this->numericUpDown1->Value, but that doesn't work, however the variable public is....

How can I do this easy assignation?

Thanks in advance

garrido
Can you try to clarify? I can't quite understand the question. What is your problem? What error do you get?
Topic archived. No new replies allowed.