Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

VS 2012 Trying to understand events & form controls

$
0
0
OK, I've got a very simple experimental form with two buttons. Clicking the first button sets off a While...End While loop (takes about a minute). The second button just does as Consonle.Beep, nothing fancy.

The problem is that the beep button will sound only after the loop has finished. I don't understand why this is the case given a multitasking OS. Clearly I'm not understanding the architecture and events.

Any pointers on what I'm doing wrong? I tried putting the loop in a subroutine which is called from the loop button 'click' subroutine (rather than inside it) but it made no difference.

:-(

Viewing all articles
Browse latest Browse all 42225


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>