Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / December 2006



Tip: Looking for answers? Try searching our database.

Custom Dialog Box to wait for user response

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tombsy - 27 Dec 2006 12:17 GMT
Hello All,
Hope I have got the correct news group for help on VB 6

I wish to temporarily stop code execution by displaying a custom dialog box
that waits for the user to press a button, then lets the remaining code
continue to run based on the users button selection.
I can do this in Access no problem using a form set as type Dialog, but dont
seem to be able to do this in VB6
Please can you help ?

The code would look something like this

Sub StartOfCode
code...
code...
code...
frmDialog.show  'waits for user response to set a global string variable
UserClickedYES to either true or false

if UserClickedYES then
    run this code
else
    run this code
endif

End Sub

many thanks in advance for any help.

kind regards

Tombsy
Jan Hyde - 27 Dec 2006 14:08 GMT
"tombsy" <iclmailspamnot@tiscali.co.uk>'s wild thoughts were
released on Wed, 27 Dec 2006 12:17:00 -0000 bearing the
following fruit:

>Hello All,
>Hope I have got the correct news group for help on VB 6
[quoted text clipped - 13 lines]
>code...
>frmDialog.show  'waits for user response to set a global string variable

frmDialog.show vbModal

J

>UserClickedYES to either true or false
>
[quoted text clipped - 11 lines]
>
>Tombsy

Jan Hyde (VB MVP)

Signature

Did you hear about the group of geometry teachers who started a motorcycle club?  
Hell's Angles.  (KM)

tombsy - 27 Dec 2006 15:32 GMT
Aha..

Well done, I thought it was simple.

Thanks Jan.

> "tombsy" <iclmailspamnot@tiscali.co.uk>'s wild thoughts were
> released on Wed, 27 Dec 2006 12:17:00 -0000 bearing the
[quoted text clipped - 41 lines]
>
> Jan Hyde (VB MVP)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.