|
-
Nov 30th, 2015, 10:35 AM
#3
Re: Message box that I didn't code appears.
Take a closer look at this line, which contains two message boxes:
 Originally Posted by ItsBryanTho
Code:
MsgBox(MessageBox.Show(String.Format("Order total: {0}", lblTotalCost.Text.Trim), "P.T.'s Grille ", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = DialogResult.Yes)
The commands MsgBox and MessageBox.Show are basically the same thing... in this case the MessageBox.Show shows the "Order total:" bit, and the MsgBox shows whether the return value of that MessageBox.Show is DialogResult.Yes or not.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|