Hello !
I have the following problem :
I have a central sub in form A.
e.g.
and say a sub called FeatureA in a module, which involves use of another form and interaction with a user of my application.
e.g.
now the problem i have is not knowing the method(s) to use that would allow me to pause execution of CentralCaller, so that FeatureB() is not called before the user presses the command button as part of FeatureA() ? And the obvious solution of sticking FeatureB() under command button click event does not work for me, as I need to leave CentralCaller() as it is, and thus need to pause execution till notified from within FeatureA() ... Any suggestions most appreciated !
p.s. im using VB.NET 2005
p.s.s. My searches have yielded SendMessage, DoEvents, Monitor.Wait, Sleep, WaitForChanged, WaitForSingleObject, but I'm either not sure how to use them or they are not usable for this purpose ...
I have the following problem :
I have a central sub in form A.
e.g.
Code:
Sub CentralCaller()
FeatureA()
FeatureB()
End Sub
and say a sub called FeatureA in a module, which involves use of another form and interaction with a user of my application.
e.g.
Code:
Public Sub FeatureA()
FormB.Show
'and Wait for User to Click Command Button
End Sub
now the problem i have is not knowing the method(s) to use that would allow me to pause execution of CentralCaller, so that FeatureB() is not called before the user presses the command button as part of FeatureA() ? And the obvious solution of sticking FeatureB() under command button click event does not work for me, as I need to leave CentralCaller() as it is, and thus need to pause execution till notified from within FeatureA() ... Any suggestions most appreciated !
p.s. im using VB.NET 2005
p.s.s. My searches have yielded SendMessage, DoEvents, Monitor.Wait, Sleep, WaitForChanged, WaitForSingleObject, but I'm either not sure how to use them or they are not usable for this purpose ...