Reputation: 45
I don´t know why, but my form isn´t calling Form_Load event when it loads.
Any ideas why this might be happening?
Upvotes: 1
Views: 3440
Reputation: 13486
Perhaps an exception is being thrown in Initialize_Component(); which prevents the on load method being called?
Upvotes: 1
Reputation: 966
go to the btnSave find "Click" set "btnSave_Click" then works
Upvotes: 0
Reputation: 31406
Do you have the event handler set up?
Ultimately, there is going to be a line of code that looks something like this:
this.Load += new System.EventHandler(this.Form1_Load);
That might be something you code yourself, or is generated by double-clicking the Load event for the form from within Visual Studio.
Upvotes: 6