?
Solved

how do i know if the user presses yes or no using messagebox (URGENT)

Posted on 2006-03-22
2
Medium Priority
?
265 Views
Last Modified: 2012-05-05
MsgBox("You already have an image or animation for this page in db" & vbCrLf & "would you like to replace it?", MsgBoxStyle.YesNo, "")


how do i know if the user presses yes or no, is there a return value this messagebox gives?
0
Comment
Question by:ab2ae
2 Comments
 
LVL 34

Accepted Solution

by:
flavo earned 2000 total points
ID: 16256750
Sure is:

If MsgBox("You already have an image or animation for this page in db" & vbCrLf & "would you like to replace it?", MsgBoxStyle.YesNo, "") = MsgBoxResult.Yes Then

etc..

Wrapping it in an If statemnet, the intelisense will show you the rest

Dave
0
 

Author Comment

by:ab2ae
ID: 16256862
perfect, i knew it was something simple, easy points flavo :o)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question