Solved

How to set the message box retry button to clear a form

Posted on 2004-10-03
1
233 Views
Last Modified: 2010-04-23
Hello experts,

I have a clear button called btnClear defined to clear the controls on my form.

How could I define the the retry button from the message box to call the btnClear in the following statement?

MessageBox.Show("You guessed your BMI incorrectly" & ControlChars.NewLine & "Do you want to re-enter the values", "Guess Results", MessageBoxButtons.RetryCancel)

Thank you for your time
       
0
Comment
Question by:Stella Pauley
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 125 total points
ID: 12214057
If MessageBox.Show("You guessed your BMI incorrectly" & ControlChars.NewLine & "Do you want to re-enter the values", "Guess Results", MessageBoxButtons.RetryCancel) = DialogResult.Retry Then
    btnClear_Click(Nothing, Nothing)
End If
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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