Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Application.Run( ) does?

Tags:

c#

.net

winforms

I was thinking that WinForms are classes as any other classes. But starting form project get me confuse. Why new Form start with Application.Run and what kind of mechanism happen inside of it ?

like image 708
Freshblood Avatar asked Jun 13 '10 22:06

Freshblood


1 Answers

As it says in the documentation, it begins running a standard application message loop on the current thread. The message loop handles clicks, keypresses, paint requests, plus many other things.

When called with a form as an argument it also makes that form visible.

like image 184
Mark Byers Avatar answered Oct 04 '22 01:10

Mark Byers