Hi,
i want to accept data from user in messagebox using a variable. and later i want to use that variable. please help me.
padmak 0 Newbie Poster
Recommended Answers
Jump to PostHi,
i want to accept data from user in messagebox using a variable. and later i want to use that variable. please help me.If MessageBox.Show("Do you want to save the data", "Save", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then
do what you want
Else
do what you want
End If
Jump to PostDim button As DialogResult button = MessageBox.Show _ ("Are you sure you want to exit this application?", _ "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) If button = Windows.Forms.DialogResult.Yes Then Me.Close() Else 'Do Nothing End If
All 7 Replies
vadiraj 0 Unverified User
vadiraj 0 Unverified User
Jx_Man 987 Nearly a Senior Poster Featured Poster
gemini twin 0 Newbie Poster
Arunabh Nag 0 Light Poster
Nada_ward 0 Junior Poster in Training
rajasekar646 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.