N
Neil Stevens
Hi,
I would like to implements a message queue much like i used to in vb6 as
below:-
dim myMsg as MSG
while (PeekMessage(myMsg, hWnd, 0, 0))
if myMsg.Msg = WM_QUIT Then
End
end if
TranslateMessage(myMsg)
DispatchMessage(myMsg)
wend
(I know the syntax probably isnt correct)
Is there a way that i can implements something similar to this in VB.NET, i
need to implement this kind of message loop as part of an execution yield, i
dont want to use DoEvents() because of the propblems i have had with using
it in the past and this method has proved the best in VB6 for yilding
execution.
Could somebody provide some example code of how to do this in VB.NET or
point me to a good resource on the internet.
Thanks in advance
Neil
I would like to implements a message queue much like i used to in vb6 as
below:-
dim myMsg as MSG
while (PeekMessage(myMsg, hWnd, 0, 0))
if myMsg.Msg = WM_QUIT Then
End
end if
TranslateMessage(myMsg)
DispatchMessage(myMsg)
wend
(I know the syntax probably isnt correct)
Is there a way that i can implements something similar to this in VB.NET, i
need to implement this kind of message loop as part of an execution yield, i
dont want to use DoEvents() because of the propblems i have had with using
it in the past and this method has proved the best in VB6 for yilding
execution.
Could somebody provide some example code of how to do this in VB.NET or
point me to a good resource on the internet.
Thanks in advance
Neil