What's different between OnLoad and [FormName]_Load?
-
When an load event occur, you can call the function [FormName]_Load(object sender, System.EventArgs e) to deal, also or call the function On_Load(System.EventArgs e). What's diffrent between them?:confused: === Game is power! ===
YourForm.OnLoad
is an override ofForm.OnLoad
, which actually raises the event. Using this override would, for example, allow you to prevent the event from being fired, by not callingbase.OnLoad
.YourForm_Load
is an event handler for theLoad
event and allows you to perfrom some action when theLoad
event occurs. To follow the previous example, you would not be able to prevent the event from being fired as it already has been. Derek Lakin. The great thing about being a slayer: is kicking ass is comfort food. Buffy Salamander Software Ltd. blog: Digital Thoughts