Can't change Textbox value in Win32 App

I couldn't change textbox value while it is running in output window.
The following code snippet is what i've been using in my side.
Can anybody suggest me what was i doing wrong?

1
2
3
4
5
6
7
8
9
10
#include "Form1.h"
using namespace Example;

int main()
{
	   Form1^ myform1 = gcnew Form1();
	   myform1->textBox1->Text = "Some Text";
	   Application::Run(gcnew Form1());
	   return 0;
}

Topic archived. No new replies allowed.