The main contour of the Windows GUI in C # ... where is it?

I have a Windows Form application in C # and I'm trying to figure out where I would use a CLI application equivalent to the primary while loop in main (). I am using Visual C # gui designer.

EDIT: The issue is resolved with a timer instance.

+5
source share
3 answers

Inside the method Application.Run. You should not call the GetMessageAPI function directly:

// MyForm is derived from `System.Windows.Forms.Form` class
Application.Run(new MyForm()); 
+13
source

Application.Run(Form). - . , . , Timer .

++ / . , .

+4

this. , - VB, .

0

All Articles