T TheRookie Member Joined Sep 15, 2005 Messages 9 Programming Experience Beginner Sep 18, 2005 #1 Message Box - RESOLVED dHow do I add an exclamation point and "ok", to my message box through this code: MessageBox.Show("Invalid Input", ControlChars.NewLine. & ex.Message) Thanks, Last edited: Sep 18, 2005
Message Box - RESOLVED dHow do I add an exclamation point and "ok", to my message box through this code: MessageBox.Show("Invalid Input", ControlChars.NewLine. & ex.Message) Thanks,
T TechGnome Well-known member Joined May 23, 2005 Messages 896 Programming Experience 10+ Sep 18, 2005 #2 Well, for starters, you had your "invalid input" as the message, and the error message as the caption (and with a CRLF in front of it to boot.) Made somechanges, but to answer your question, the next two parameters indicate the buttons and the icons displayed. VB.NET: MessageBox.Show( ex.Message,"Invalid Input", MessageBoxButtons.OK,MessageBoxIcon.Exclamation ) -tg Upvote 0 Downvote
Well, for starters, you had your "invalid input" as the message, and the error message as the caption (and with a CRLF in front of it to boot.) Made somechanges, but to answer your question, the next two parameters indicate the buttons and the icons displayed. VB.NET: MessageBox.Show( ex.Message,"Invalid Input", MessageBoxButtons.OK,MessageBoxIcon.Exclamation ) -tg
T TheRookie Member Joined Sep 15, 2005 Messages 9 Programming Experience Beginner Sep 18, 2005 #3 Thanks Gnome, Upvote 0 Downvote