Where can i put EnterThreadModal event of application in my application ??

Where can i put EnterThreadModal event of application in my application ??

please refer the below code
private void Application_EnterThreadModal(Object sender, EventArgs e) {

   MessageBox.Show("You are in the Application.EnterThreadModal event.");

}

Open in new window


where i can put the above code ?? in program.cs file or in form code behind ??
Parth48Asked:
Who is Participating?
 
Paul JacksonConnect With a Mentor Software EngineerCommented:
It needs to go in program.cs
0
 
Paul JacksonSoftware EngineerCommented:
Is this for an asp.net application or windows forms as that event is related to windows forms only.
0
 
Parth48Author Commented:
hi @jacko72: , it's windows form application ,but where i can put this event , in program.cs file or anywhere else ??
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.