I am trying to use the values from numericUpDown boxes. With the execptoin of totalRunTime, all variables in this sample of code are from numericUpDown boxes. I have tried declaring totalRunTime as an int, decimal, double, ect... Am I missing something simple here? private void button1_Click(object sender, EventArgs e) { totalRunTime = (secondTemp.Value - startTemp.Value) / ramp1.Value + initialHold + (finalTemp.Value - secondTemp.Value) / ramp2.Value + finalHold.Value; }

Member Avatar
Member Avatar
+0 forum 9

Hello everybody. I've a question. I tried to change font size of textBox named "textBox1" Here is the function of the NumericUpDown: [CODE]private: System::Void numericUpDown2_ValueChanged(System::Object^ sender, System::EventArgs^ e) { String^ Num2 = this->numericUpDown2->Text; this->textBox1->Font->Size = Num2; };[/CODE] Errors that occur: [CODE] error C2039: 'set' : is not a member of 'System::Drawing::Font::Size' error C2039: 'set' : is not a member of 'System::Drawing::Font::Size' [/CODE]

Member Avatar
Member Avatar
+0 forum 3

How can I prevent the beep sound when I use the SendKey command in NumericUpDown1 Box? Here is the code: [CODE] Private Sub NumericUpDown1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles NumericUpDown1.KeyPress Static SAME As Short = TB2 TB1 = SAME - NumericUpDown1.Value If e.KeyChar >= "0" And e.KeyChar <= "9" Then SendKeys.Send("ENTER") End If TextBox1.Text = TB1 End Sub[/CODE]

Member Avatar
+0 forum 0

The End.