MsgBoxStyle.MsgBoxHelp - How To Use It
Aug 11, 2010
I am using VB.Net in Visual Studio 10 Professional.I have a message box with an ok button and a help button using the following code:
Dim buttonPressed As Integer = MsgBox("There is a problem in " + strFileName, MsgBoxStyle.MsgBoxHelp, "Sources.CFG problem!")
If the user clocks on the Help button I want to pop up my context-sensitive help file already at the right topic.However, pressing the Help button doesn't seem to fire any events that I can see. Nothing seems to happen in fact. And buttonPressed only returns 1 when I press the OK button and the message box closes, regardless of whether I pressed the help button before the OK button or not.
View 7 Replies
Oct 24, 2009
I want to code this message box >>>> MsgBox("Please select a Box", MsgBoxStyle.RetryCancel, ) How do i code the "Retry/Cancel Part of it ?
View 39 Replies
Jul 6, 2011
My system still show the "record has been added" and save/insert the data even if i chose the "no" button. I think I miss something on our codes. Should I add something?
Here's the scenario: If "Yes" (button) will be clicked, it'll save the data and clear the fields. If "no" (button), it'll clear the fields and shouldn't save anything.
Here are the codes:
Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click
If newname.Text = "" Or newaddress.Text = "" Then
MsgBox("Please fill-up all the requirements.", vbExclamation, "*** System")
Else
[CODE].........................
View 12 Replies