iancowley
January 24, 2003, 11:21:56
Place a .Net text control and a button on a form
try the following code
The fields are added, but when I try to return them I get an error (after the first one)
Am I doing something wrong??
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim int1 As Integer
TextControl1.TextFields.Add(New TXTextControl.TextField("Field01"))
TextControl1.TextFields.Add(New TXTextControl.TextField("Field02"))
TextControl1.TextFields.Add(New TXTextControl.TextField("Field03"))
For int1 = 0 To TextControl1.TextFields.Count - 1
MessageBox.Show(TextControl1.TextFields.GetItem(in t1).Text)
Next
End Sub
try the following code
The fields are added, but when I try to return them I get an error (after the first one)
Am I doing something wrong??
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim int1 As Integer
TextControl1.TextFields.Add(New TXTextControl.TextField("Field01"))
TextControl1.TextFields.Add(New TXTextControl.TextField("Field02"))
TextControl1.TextFields.Add(New TXTextControl.TextField("Field03"))
For int1 = 0 To TextControl1.TextFields.Count - 1
MessageBox.Show(TextControl1.TextFields.GetItem(in t1).Text)
Next
End Sub