I'm very new to C# and Visual Studio but I'm finding my way around a bit.
I'm completely stumped on this issue. I don't know what I have done to cause my form to do this... I have several forms which all work correctly except this one (and it worked right at one point...).
To make a long story short, the Form_Load event is never actually touched when my form is loaded.... To verify this, I added MessageBox.Show("Test"); inside of it and the form actually loads but any code in the _Load event isn't ran...
I know it sounds strange and I'm hoping it's just something like a simple and stupid thing that I have done...
Arjay, thanks for the response. I'm not sure if I'm dense or what but I do not see an "OnLoad" event. I'm using Visual Studio 2005 if that matters. When I open the form and go to it's properties, I see the Load event which when I double click it, it takes me to the code where my messagebox is located...
Your quote "Find the OnLoad event and make sure it's still attached to your on load handler. " is interesting as that sounds like it but not sure how to find it..
Also, another note... I have another form that has Load events and I created a breakpoint right at the load event. When I debug and open the form, it stops in Visual Studio and lets me step through the Load event. If I do this to the form that isn't working, visual studio never hits the breakpoint.... It's so weird and I'm not sure what's going on.
form's load event handler funciton is not attached to the Load event I guess
win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming
remeber to give feedback you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation
private lessons are not an option so please don't ask for help in private, I won't replay
if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know
I know it's strange but the load event is attached... I'm beginning to think this is a bug. In the form's properties I've chosen the Load event and gave it a name, double clicked it and wrote the code in the event.
If you are worried about the code of your application, you can attach just that form to your reply and someone here may take a look at it. I suppose it has got something to do with the recent changes that you might have made to the form or maybe by mistake you removed or added a piece of code.
Use [code]your code here[/code] tags when you post source code
Search here before you post your question, someone might have already asked it before. My Articles
BigEd, I would love to post the entire project which I can, except most of the stuff requires the SQL database that I have on my machine. If I upload the project, will you be able to use it even though you won't have the database?
Also, on another note. I TRUELY appreciate your guy's help. This is awesome that you would take time out of your day to help others out. THANK YOU!!!