Can’t get “z” to be replaced by the code below. Any help would be awesome. Thanks
//Generate Nut Part Number
textBox7.Text = "MLA028Z-CAN-" + comboBox2.Text + "R" + "-" + comboBox3.Text + "z" + "0";
//Replaces z Variable in Lead Screw Assembly Part Number
if (comboBox1.Text == "0")
textBox6.Text.Replace("z", "B");
else if (comboBox1.Text == "1")
textBox7.Text.Replace("z", "D");
else if (comboBox1.Text == "2")
textBox7.Text.Replace("z", "D");
else if (comboBox1.Text == "3")
textBox7.Text.Replace("z", "D");
else if (comboBox1.Text == "4")
textBox7.Text.Replace("z", "D");
else if (comboBox1.Text == "5")
textBox7.Text.Replace("z", "D");
else if (comboBox1.Text == "6")
textBox7.Text.Replace("z", "D");
else if (comboBox1.Text == "7")
textBox7.Text.Replace("z", "B");
Modify each of your
with