hi iam new to programming and i want to know how i tell vb.net if it was replied to a msgbox with (yes ) then do something
please help me about that
ahmed_mido
0
Newbie Poster
Recommended Answers
Jump to PostTry this:
If MessageBox.Show("Button Pressed " & CStr(Int(Button1.Text) + 1) & " times") = Windows.Forms.DialogResult.OK Then Button1.Text = CStr(Int(Button1.Text) + 1) End If
or this:
Dim result As Integer = MessageBox.Show("This is a message") If result = vbOK Then Button1.Text = "Something"
All 3 Replies
waynespangler
63
Posting Pro in Training
Jx_Man
987
Nearly a Senior Poster
Featured Poster
poonams
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.