I've had this error for today and I don't know how to correct it. Would someone please help me? My program would run but it would freeze for sometime

Dim welcomemessage As String = "QUANTITY DESCRIPTION TOTAL" & vbCr
        Dim totalprice As Integer
        If Checkbox1.Checked = True Then welcomemessage = TextBox2.Text & vbTab & Checkbox1.Text & (Checkbox1.Text * TextBox2.Text).ToString & vbCr
        totalprice = Checkbox1.Text * TextBox2.Text

Recommended Answers

change this code with this

Checkbox1.Text * TextBox2.Text ' it your code change it 

val(Checkbox1.Text) * val(TextBox2.Text) ' use this code.
Jump to Post

All 2 Replies

change this code with this

Checkbox1.Text * TextBox2.Text ' it your code change it 

val(Checkbox1.Text) * val(TextBox2.Text) ' use this code.
commented: If Checkbox1.Checked = True Then welcomemessage = TextBox2.Text & vbTab & Checkbox1.Text & Str(Val(Checkbox1.Text) & Val(TextBox2.Text)) & vbCr totalprice = Str(Val(Checkbox1.Text) & Val(TextBox2.Text)) +0

if your prob is solved please mark this thread solved,

Regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.