Question Input Box Question!

networkmancer

Member
Joined
Jan 18, 2011
Messages
6
Programming Experience
Beginner
After clicking OK in input box opens a msg box without the input box content. Just Plane Msgbox("hello world" , MsgboxStyle.Information)

its like

If InputBox("bla bla","bla bla) click OK then
Msgbox("hello world" , MsgboxStyle.Information)

How to handle OK button to edit its function .

It will show the Msgbox I created after I clicked ok. Sorry Im not pro ;)
 
Last edited:
I found this for you

VB TIP: InputBox - OK or Cancel? - Developer.com


Far from ideal, but this seems to be how some people are doing it, so I just wrote a quick example. Looks like there may be better ways though.

VB.NET:
  If InputBox("Prompt", "Title", " ") = "" Then
            MsgBox("You pressed Cancel or cleared the box and pressed OK ;) ")
        Else
            MsgBox("You pressed ok")
        End If

Assuming thats what you wanted to know?
 
Last edited:
Back
Top