this is in event handler submit order.
I have debugged and used code-breaks to determine that this is they only handler that shows the problem.
I receive my message box that confirms and shows order total THEN i receive a message box that has said "true","6" or "false" the unknown box also has the same title as all my others. after the confirmation of order is displayed I'm supposed to see another confirmation that order has been submitted. I do see that, but the unknown text box is in the middle. I have no clue why.
thanks in advance guys and input is appreciatedCode:Private Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click If (txtName.Text.Trim = "") Then MsgBox("Please enter your name.", MsgBoxStyle.Information, "P.T's Grill") txtName.Clear() txtName.Focus() Else MsgBox(MessageBox.Show(String.Format("Order total: {0}", lblTotalCost.Text.Trim), "P.T.'s Grille ", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = DialogResult.Yes) radBlackBean.Checked = False radBLT.Checked = False txtName.Text = "" radBurgerEight.Checked = False radBurgerFour.Checked = False radCarryOut.Checked = False radChiken.Checked = False radDew.Checked = False radDiet.Checked = False radDog.Checked = False radMist.Checked = False radRB.Checked = False radRoastBeef.Checked = False radPepsi.Checked = False radSweet.Checked = False radUnsweet.Checked = False radWater.Checked = False radDiet.Checked = False radBlackBean.Checked = False radBLT.Checked = False radTurkey.Checked = False radPatio.Checked = False radVeggie.Checked = False lblTotalCost.Text = "" chkAmerican.Checked = False chkBacon.Checked = False chkChili.Checked = False chkJack.Checked = False chkKet.Checked = False chkLet.Checked = False chkMayo.Checked = False chkMust.Checked = False chkOnion.Checked = False chkTom.Checked = False radLemon.Checked = False radBurgerEight.Checked = False MsgBox("Your order has been submitted to the kitchen", MsgBoxStyle.OkOnly, "P.T.'s Grille") End If End Sub
again I'm in 2013 VB





Reply With Quote
