Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

820 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