Windows Develop Bookmark and Share   
 index > Windows Forms General > Control Load Event
 

Control Load Event

Hi,

I'm writing an UI with WinForms and need to know, when a System.Windows.Forms.Control of any kind is loaded. Is there any event which is thrown after a is loaded?

Thanks

Manuel Bauer

Manuel Bauer  Wednesday, May 02, 2007 11:37 AM

Control class which is ultimately the base class of every Control doesnot expose such event but you can use HandleCreated event instead.

I hope this will help.

Best Regards,

Rizwan aka RizwanSharp

RizwanSharp  Wednesday, May 02, 2007 6:51 PM
I took a look in the Form Events and I found the "Form Shown" event that occurs whenever the form is first displayed...

See if this works

Cheers
celobateira  Wednesday, May 02, 2007 11:46 AM

Control class which is ultimately the base class of every Control doesnot expose such event but you can use HandleCreated event instead.

I hope this will help.

Best Regards,

Rizwan aka RizwanSharp

RizwanSharp  Wednesday, May 02, 2007 6:51 PM

Hi

Thank you for your answer. The HandleCreated event did help.

Best Regards

Manuel Bauer

Manuel Bauer  Friday, May 04, 2007 6:18 AM

You can use google to search for other answers

Custom Search

More Threads

• Contextmenu control
• Activate a winform
• Creating new textboxes during runtime
• Change BackColor of Entire Application
• How to install Bugfixes for my Apps?
• Order of events in the WinForm application...?
• Design Wizard Form type?
• Application.EnableVisualStyles()
• Hiding Tabs
• Combobox with Display member and value and generic class?????????????????????