alright im bored at work and im working on a stupid little application in VB... its a single form, but it needs an idle loop to keep the form contents moving and updated, but needs to yield to API events, so subs such as command1_onclick still run when appropriate...
do: doevents: loop doesnt work, it keeps the PC responsive but never displays the form.
just a do:loop kills it of course, since its an endless loop and never checks for events.
its my understanding that a loop made to check for events with peekmessage is supposed to work, but i cant get on the net to research it and need just a bit of direction from a VB programmer...
ive done stuff in VB, but its always me just figuring it out as i go, im familiar with it and know the syntax well (long time basic programmer) just using VB to deal with the API is pissing me off, since its not something i can just "make up" in my head.
will provide code as necessary, but dont think it is... just need to make an idle loop that yields to API events.
do: doevents: loop doesnt work, it keeps the PC responsive but never displays the form.
just a do:loop kills it of course, since its an endless loop and never checks for events.
its my understanding that a loop made to check for events with peekmessage is supposed to work, but i cant get on the net to research it and need just a bit of direction from a VB programmer...
ive done stuff in VB, but its always me just figuring it out as i go, im familiar with it and know the syntax well (long time basic programmer) just using VB to deal with the API is pissing me off, since its not something i can just "make up" in my head.
will provide code as necessary, but dont think it is... just need to make an idle loop that yields to API events.





Comment