Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,097 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,826 people online right now. Registration is fast and FREE... Join Now!




Some controls to not respond, cant see why

 
Reply to this topicStart new topic

Some controls to not respond, cant see why

bowside
5 Jun, 2008 - 08:44 AM
Post #1

New D.I.C Head
*

Joined: 6 Nov, 2007
Posts: 5


My Contributions
Hi,
I have a small GPS app that uses a single form, with 3 different functions that show and hide 3 seperate "windows" of controls/buttons. I did it this way instead of having to mess with loading different forms.

When the form loads, it processes anything I do with the initial buttons correctly. Then I click an OK button which calls the function to show the next "window". The next set of controls show up OK, but when I click one of the buttons to do something, I get no response.

Now I have put in message box lines of code to show if I reach certain points, but both a message box command and a text box "text" update line do not get triggered, even though they are the first lines of the btnRetest_Click sub.

Can anyone give me a guideline on what to try or do next.
I can post my code here if needed but I didn't want to dump it onto the screen without knowing if it was necessary.
I think it may be to do with my subs/functions not finishing correctly and hence the program cannot react the the next input, but I could be talking a lot of horse poopy here.
User is offlineProfile CardPM
+Quote Post

mensahero
RE: Some Controls To Not Respond, Cant See Why
5 Jun, 2008 - 10:15 AM
Post #2

c0mput3rz Are Only Human
Group Icon

Joined: 26 May, 2008
Posts: 664



Thanked: 17 times
Dream Kudos: 75
My Contributions
QUOTE(bowside @ 5 Jun, 2008 - 09:44 AM) *

Hi,
I have a small GPS app that uses a single form, with 3 different functions that show and hide 3 seperate "windows" of controls/buttons. I did it this way instead of having to mess with loading different forms.

When the form loads, it processes anything I do with the initial buttons correctly. Then I click an OK button which calls the function to show the next "window". The next set of controls show up OK, but when I click one of the buttons to do something, I get no response.

Now I have put in message box lines of code to show if I reach certain points, but both a message box command and a text box "text" update line do not get triggered, even though they are the first lines of the btnRetest_Click sub.

Can anyone give me a guideline on what to try or do next.
I can post my code here if needed but I didn't want to dump it onto the screen without knowing if it was necessary.
I think it may be to do with my subs/functions not finishing correctly and hence the program cannot react the the next input, but I could be talking a lot of horse poopy here.


IMO... you're better off posting your code.. because its actually a policy here.. and it will be really easy for someone to help you if he could actually see that code immediately.. blink.gif blink.gif

this might be the problem:
1. Your putting the code in the wrong button..
its better if you double click on the button and wait for the code window to pop up that way you are sure that the code goes inside the right button.

2. Unless your coding your own method/sub, let the IDE generate the method headers for you and don't modify it.

This post has been edited by mensahero: 5 Jun, 2008 - 10:18 AM
User is offlineProfile CardPM
+Quote Post

Locke37
RE: Some Controls To Not Respond, Cant See Why
5 Jun, 2008 - 10:52 AM
Post #3

Contributor of the Year
Group Icon

Joined: 20 Mar, 2008
Posts: 1,274



Thanked: 57 times
Dream Kudos: 325
My Contributions
Did you set the *new window*'s Enabled property to True? This could have created a problem if you set the Visible property to True, so you could see it, but not enable the window, therefore not performing any actions.

This post has been edited by Locke37: 5 Jun, 2008 - 10:53 AM
User is offlineProfile CardPM
+Quote Post

bowside
RE: Some Controls To Not Respond, Cant See Why
6 Jun, 2008 - 07:41 AM
Post #4

New D.I.C Head
*

Joined: 6 Nov, 2007
Posts: 5


My Contributions
mensahero:
you were right with the " let the IDE generate the method headers for you and don't modify it"
I have copied the buttons and code in from another form, but the button click was not associated with the code, so when I eventually double clicked the button in edit mode, I saw what was wrong.

And thnaks for the heads up on code posting.
thanks.
User is offlineProfile CardPM
+Quote Post

mensahero
RE: Some Controls To Not Respond, Cant See Why
6 Jun, 2008 - 09:18 AM
Post #5

c0mput3rz Are Only Human
Group Icon

Joined: 26 May, 2008
Posts: 664



Thanked: 17 times
Dream Kudos: 75
My Contributions
QUOTE(bowside @ 6 Jun, 2008 - 08:41 AM) *

mensahero:
you were right with the " let the IDE generate the method headers for you and don't modify it"
I have copied the buttons and code in from another form, but the button click was not associated with the code, so when I eventually double clicked the button in edit mode, I saw what was wrong.

And thnaks for the heads up on code posting.
thanks.


no problem.. glad to be of service.. biggrin.gif biggrin.gif icon_up.gif

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:22AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month