[deleted]_________________________________________
Printable View
[deleted]_________________________________________
I am assuming that you are using buttons 1 - 0 (like on a microwave) as the input for the time value. So, code such as:
Text1.Text = Button1.Text & Button2.Text & Button3.Text
Would put 123 into a TextBox named Text1.
One thing you need to consider is that the 123 in Text1 will be a string and you will need to convert it to an integer value to have it work with your timer.
Good Luck
[deleted]______________________________________________
Yes, you are correct. I was just showing you how you could get the text value that appeared on your button, into a textbox. You would actually need to add the button value of each button as it is clicked. Something like:Quote:
It will simply print 1234567890 into the text box when I hit button 1.
There are a lot of ways that you could do your project and, since I don't know much about it, I can't relly state what the best way would be. And, using a textbox to hold the time value might not be the best control to use.Quote:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Text1.Text = Text1.Text & Button1.Text
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Text1.Text = Text1.Text & Button2.Text
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Text1.Text = Text1.Text & Button3.Text
End Sub
Good Luck
[deleted]______________________________________________