Hi Guys,
I am trying to use the below code to open a messgae box when the OK
button is clicked on a dialog form. Its not working though.
The dialogue form is a separate form with just a single OK button
attached. I have set the dialogaccept to OK on the button etc.
Private Sub RenameToolStrip MenuItem_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
RenameToolStrip MenuItem.Click
Dialog1.Show()
Dialog1.Locatio n = ContextMenuStri p1.SourceContro l.Location
If Dialog1.DialogR esult = Windows.Forms.D ialogResult.OK Then
MsgBox("hhh")
End If
End Sub
I am trying to use the below code to open a messgae box when the OK
button is clicked on a dialog form. Its not working though.
The dialogue form is a separate form with just a single OK button
attached. I have set the dialogaccept to OK on the button etc.
Private Sub RenameToolStrip MenuItem_Click( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
RenameToolStrip MenuItem.Click
Dialog1.Show()
Dialog1.Locatio n = ContextMenuStri p1.SourceContro l.Location
If Dialog1.DialogR esult = Windows.Forms.D ialogResult.OK Then
MsgBox("hhh")
End If
End Sub
Comment