G
Guest
Hello all, This is my first time posting a question to this forum, so here is
hoping I am following protocol. I am scraping the rust off my old Basic
programming skills, and have just recently upgraded to VB.NET, and I have a
lot of catching up to do. That being said, I have come a long way in a short
while, however, I am stumped at the moment. I have read through days of
posts, but have not been able to address my specific question, so here is
hoping I can find the answer on this site.
I have a running process that generates random numbers, and displays those
results on the forms page by means of both graphics and a textbox. My control
buttons on the form would allow the user to disrupt the process, as in either
a pause, or begin again mode. I have created a control array that places the
'AutoGenerate' button, the 'Pause' button, and the 'ReStart' button in the
same event handler. I expected that the program would recognize when the user
selected a button such as 'Pause while in the 'AutoGenerate' mode that would
allow me to use an 'If ....Then' statement to detect that a different control
had been selected and then react accodingly, as in 'pause' the program or
restart the program, depending on which button was selected, but instead,
when I click on anything after having selected the 'AutoGenerate' mode, while
in debug mode, the program just crashes, leaving me a large white area at the
bottom of the screen, and the need to 'Ctrl,Alt,Dlete' to get back to the
code window.
How do I get the program to recognize that a different control had been
selected during a running process, and act upon the controls intended
purpose, such as changing the value of a variable or the like? Any help would
be appreciated. Thankyou.
hoping I am following protocol. I am scraping the rust off my old Basic
programming skills, and have just recently upgraded to VB.NET, and I have a
lot of catching up to do. That being said, I have come a long way in a short
while, however, I am stumped at the moment. I have read through days of
posts, but have not been able to address my specific question, so here is
hoping I can find the answer on this site.
I have a running process that generates random numbers, and displays those
results on the forms page by means of both graphics and a textbox. My control
buttons on the form would allow the user to disrupt the process, as in either
a pause, or begin again mode. I have created a control array that places the
'AutoGenerate' button, the 'Pause' button, and the 'ReStart' button in the
same event handler. I expected that the program would recognize when the user
selected a button such as 'Pause while in the 'AutoGenerate' mode that would
allow me to use an 'If ....Then' statement to detect that a different control
had been selected and then react accodingly, as in 'pause' the program or
restart the program, depending on which button was selected, but instead,
when I click on anything after having selected the 'AutoGenerate' mode, while
in debug mode, the program just crashes, leaving me a large white area at the
bottom of the screen, and the need to 'Ctrl,Alt,Dlete' to get back to the
code window.
How do I get the program to recognize that a different control had been
selected during a running process, and act upon the controls intended
purpose, such as changing the value of a variable or the like? Any help would
be appreciated. Thankyou.