• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 399
  • Last Modified:

VB.net controls not working

Hi,
This is probably a really stupid question question and I suspect I've changed some property somewhere by accident but I can't figure what so I'm going to ask my stupid question anyway. I have a few forms in a simple project and everything was working fine until yesterday. Today everything works fine until I get to the third form when matters start to go awry. I can click a checkbox and the tick appears in the box. Previously this would change the width of the groupbox it was in, now nothing happens. When I tick the cancel button, the same happens - it 'clicks' but the code behind it doesn't kick in! None of the buttons or code seems to work - What have I done wrong? It's a simple program that creates word documents based on values from the forms - since yesterday I changed the namespace ( I changed it back though and nothing happened), added a tab control and a few buttons and radio buttons but that's it. Any suggestions would be most welcome!
0
BozM
Asked:
BozM
2 Solutions
 
Shiju SasidharanCommented:
Goto event of the control which is not working  
check whether it has got "Handles" keyword at the end like

Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles Button1.Click


0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
"added a tab control"

So you probably changed the "container" of your controls by moving them no?

The IDE sometimes removes the "Handles xxx.yyy" part when you do this.  See shijusn's remark...
0
 
BozMAuthor Commented:
Thanks for that lads, nice to know why it happened as well as how to fix the problem.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now