Newbe trying to write simple program

mt_latigo

New member
Joined
Mar 19, 2005
Messages
2
Programming Experience
Beginner
for class I am trying wrtie a simple program using a one dimensional array.

Is there a way I can read in a number value from a TextBox and have it displayed in another textbox only using the 'Enter Key'



any help would be greatly appreciated
 
We are happy to assist you with class work if you provide code that you would like us to review. We cannot do your school work for you. So give it your best shot, post any code that may not be working as desired, and we'll help you from their. You need to try first.
 
My bad. You are right I should have posted the code I have so far...
What I am not sure if I have my sub routines correct. But I am trying to read in from the text box and then display the result into another text box and the result should only display if the user uses the 'Enter' Key


Dim Display As String

Dim InputResponse As Integer()

Dim i As Integer

Dim j As Intege



Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click

Me.Dispose()

End Sub



Private Sub ConsoleInput_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtInput.KeyDown



If e.KeyCode = Keys.Enter Then



Display = (txtDisplay.Text)





End If





End Sub



Private Sub txtInput_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtInput.TextChanged



InputResponse = New Integer() {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, _

13, 14, 15, 16, 17, 18, 19, 20}



For i = 0 To InputResponse.GetUpperBound(0)

Display &= i

Next



End Sub



End Class
 
Display = (txtDisplay.Text)
the right side goes into the left side of the (=)
shouldnt it be
txtDisplay.Text=Display
?
 
Back
Top