Im new to C# and having trouble with this code: I have a combo box on a form optypeCB and when a particular type is picked(Draw,Form,Pierce,Trim) I would like a numerical value assigned to a text box designhrsTB. My code is as follows but it does not work can anyone help me. Thanks in advance
optypCB.Text ;
switch(int);
{
case "Draw":
designhrsTB = 80;
case "Form":
designhrsTB = 120;
case "Pierce":
designhrsTB =120;
case "Trim":
designhrsTB =160;
}