Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

windows forms MsgBox function OK button click event

Hi experts,

I have a Windows Forms application using VB as the language.

I have a windows forms page with has some textboxes and a submit button.

If you fill out the wrong data in the textboxes I have some vb code that validates the textboxes for good data.

If it's bad data I'm using MsgBox function. To display a MsgBox window with the errors.

I'm not familiar with the MsgBox function.   Right now I believe I have MsgBoxStyle property set to the MsgBoxStyle.OkOnly
Which displays an OK button in the window. If I click the OK button the windows closes.

MsgBox Function (Visual Basic)
https://msdn.microsoft.com/en-us/library/139z2azd(v=vs.90).aspx

If I want to add something to the MsgBox OK button click event.

Anyone know how to access the click event for MsgBox OK button?
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial