04-10-2011, 12:53 PM
(This post was last modified: 04-10-2011, 03:55 PM by Resistance.)
I posted this thread on HF, VBForums and now SF. And I highly doubt anybody can help me, but that would be miraculous.
Does anybody know how to use result of if the user canceling the InputBox, or Xing it out? Like this:
But clearly that code wouldn't work. Still not understanding? Check this out:
The code for the picture above:
You see what I am getting at? Please help me, I do not specialize in MessageBoxes in VB.
The ANSWER TO THIS ALL:
Does anybody know how to use result of if the user canceling the InputBox, or Xing it out? Like this:
Code:
Dim objShell
objShell = CreateObject("Wscript.Shell")
Dim Wscript
Wscript = CreateObject("Wscript.Shell")
If GetObject("blablabla").Something(InputBox("Hello World", "Enter a Response:", "<ENTER RESPONSE HERE>"), 0, 100) = InputBox.Result = Cancel Then
End If
But clearly that code wouldn't work. Still not understanding? Check this out:
The code for the picture above:
Code:
If MsgBox("Cancel the current operation?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
Else
e.Cancel = True
End If
You see what I am getting at? Please help me, I do not specialize in MessageBoxes in VB.
The ANSWER TO THIS ALL: