Solved

VB.net controls not working

Posted on 2006-11-09
3
394 Views
Last Modified: 2013-12-26
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
Comment
Question by:BozM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
Shiju Sasidharan earned 400 total points
ID: 17905494
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
 
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 100 total points
ID: 17907151
"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
 

Author Comment

by:BozM
ID: 17915447
Thanks for that lads, nice to know why it happened as well as how to fix the problem.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question