Reputation: 3330
I have a windows form which connects to a SQL Server though a dataset. The form was working fine since my last compile. All of a sudden, none of my buttons work! The data is loaded on the form, all the tabs work fine, drop down boxes work fine, but the buttons are literally unresponsive to any clicks. I added a test button and I get the same results. I can visually see the button getting clicked but no events. Any ideas?
Upvotes: 1
Views: 247
Reputation:
In the VB editor, main menu go: Build-->Configuration Manager, and make sure that "Debug" is the option for Active Solution Configuration and Project Context. It can't be "Release" to run the validity check below. (none of these instructions will change your code, but rather will simply confirm it is executing ok).
Next, in your Form, double click on a button during editing (not run-time), and once inside the code for a button, click on the far left vertical gray-colored column (1/4" wide) on a line with a field or variable that should get filled (make sure that a maroon-colored bullet appears in the gray column for that specific line). Run the code and then click on this button, and if the code is working in this button, execution should stop on this line and the line should be highlighted in yellow. If this doesn't happen, your code is not executing.
Upvotes: 0
Reputation: 9024
Be sure to save multiple copies of your programs in more than one place(including other storage forms). That will save you a bunch in a hard drive crash. Save to them often. When your solutions are working after cleaning and rebuilding this will be the ultimate backup.
Upvotes: 1