Hello brothers.
I am coming to you today with a new and most probably easy fixed issue.
I have a series of calculations that are completed upon clicking "button3"
My program will error because some of the calculations require a number to be entered in some of the textboxes for example "Height" and "Width"
But i need to be able to set a default string in the combobox and have no idea how.
Here is my code:
Thank-you in advanced.
I am coming to you today with a new and most probably easy fixed issue.
I have a series of calculations that are completed upon clicking "button3"
My program will error because some of the calculations require a number to be entered in some of the textboxes for example "Height" and "Width"
But i need to be able to set a default string in the combobox and have no idea how.
Here is my code:
VB.NET:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
' SD2 6mm Calcs
sd26mmhead.Text = widthtxt.Text * 14.55 / 1000 * qty1.Text
sd26mmsill.Text = widthtxt.Text * 12.97 / 1000 * qty1.Text
sd26mmguides.Text = heighttxt.Text * 60.45 / 1000 * qty1.Text
sd26mmlapseal.Text = widthtxt.Text * 19.0 / 1000 * qty1.Text
sd26mmhardware.Text = widthtxt.Text * 35.15 / 1000 * qty1.Text
sd26mmmanu.Text = widthtxt.Text * 228.0 / 1000 * qty1.Text
sd26mminstall.Text = widthtxt.Text * 228.0 / 1000 * qty1.Text
sd26mmglass.Text = heighttxt.Text * widthtxt.Text / 1000000 * mememe.Text * qty1.Text
' String to load the 6mm calcs
Me.sd26mmtxt.Text = sd26mmhead.Text * 1 + sd26mmsill.Text * 1 + sd26mmguides.Text * 1 + sd26mmlapseal.Text * 1 + sd26mmhardware.Text * 1 + sd26mmmanu.Text * 1 + sd26mminstall.Text * 1 + sd26mmglass.Text * 1
Thank-you in advanced.