Solved

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

Posted on 2004-10-03
1
213 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now