Hi,
I'm using a Form generated application.
Its definition starts with:
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
When I'm inside one of its method, I can use calls like:
this->StartPosition = FormStartPosition::Manual;
thanks to the this pointer.
How can I do this kind of calls from a routine that's not part of the class?
I obviously need a handle to the instance of the class, but I don't know how to get it.
The app starts with:
Application::Run(gcnew Form1());
but trying to change into:
Form1 ff = gcnew Form1();
Application::Run(ff);
gives a compiler error.
I'm new to C++, and there is probably something basic that I don't understand.
Thanks.