The question is probably very stupid)) but still I cannot change the window size in the program, that is, the shape. For example, I enter in the code some buttons Form1-> Width = 300 (or Form1-> Height = 300) and an error pops up, such as the turn on the left should point to the class. Help me please. I work in Microsoft Visual C ++ 2010
I understand Form1 is a class, not an instance? If you resize, for example, in the click handler of the button belonging to this form, then this:
this->Width = 300;
If you want to change the size of the form number 1 of the form number 2, then in the form number 2, you must pass a link to the form number 1.