 |
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: TextBox & 4-next loop
If you put only 1 textbox, and ask from user to type all answers in it, then it can be very confusing for the user, since user cannot know what answers he gave, nor can he change them. If you create a control array of 20 textboxes, then it could be quite easy to get all the answers
private sub text1_change(index as integer)
cnf(index)=text1(index).text
end sub |
In your array base index starts with 1, then you should change it to
private sub text1_change(index as integer)
cnf(index)=text1(index+1).text
end sub |
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
30-10-2004 at 10:38 AM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: TextBox & 4-next loop
Try this, it can do the work. Place Textbox and Label on the form
Dim cnf(20) As String
Private Sub Text1_KeyPress(KeyAscii As Integer)
Static x As Integer
If KeyAscii = 13 Then
x = x + 1
cnf(x) = Text1.Text
Text1.Text = ""
SetLabelCaption x
End If
End Sub |
|
SetLabelCaption can be a function where you will change label caption. It can look like this
private sub SetLabelCaption(x as integer)
select case x
case 1
label1.caption="First question"
case 2
label1.caption="second question"
' etc etc etc
end select
end sub |
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
31-10-2004 at 05:29 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: TextBox & 4-next loop
I dont understand what this has to do with program you are making? Did you put it in startup? This file is is loading default settings for Leadtek Winfast graphics cards, but it seems it is not system critical. If you installed some serice pack, or something else that caused your graphics driver not to work correctly, then try installing graphics driver again.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
02-11-2004 at 07:55 PM |
|
|
|
|
 |
 |