event handler in designer code?

MindGame3713

New member
Joined
Feb 13, 2011
Messages
2
Programming Experience
Beginner
I am using Visual Studio 2010 making simple programs for a class I have. I am trying to start a new project but am having some trouble. I have the design aspect of the project completed but now when I click on a control in order to start writing the proceedures it keeps displaying the sub class in the designer tab where the basic code for the controls and form is instead of in the form1.vb tab where it has been when I previously have used the program. How do I fix this? Sorry if this is in the wrong place or if the way I explained it is confusing. I am very new to the laguage and the program.
 
Can you attach a screen shot? What you're saying doesn't seem to make sense. It sounds like maybe you've created a WPF project, which displays the designer and XAML code in a split window, but it should still take you to the user code file when you double-click a control.
 
I attached a screen shot. Number 1 is where the code is going when a control is clicked and number 2 is the tab where it usually goes when i have worked on other projects
 

Attachments

  • screenshot.png
    screenshot.png
    163 KB · Views: 40
I see. So your event handlers are being added to the designer code file rather than the user code file. That does seem odd. If you add another form to the same project, does the same thing happen? If not then I'd suggest copying and pasting all your controls to that new form and then deleting the old one. If another form behaves the same way, what about another project?
 
Back
Top