Dipen01
Youngling
hi there...
Got a little doubt on VB here...
these codes may be syntactically incorrect. ignore syntax
1) -
Code 1)
form_load
print "Hello"
End Sub
Code 2)
form_load
Text1.text = "Hello"
End Sub
Though both the cases seem alike.. the message is not displayed (neither in frame or window) in first case whereas it displaying properly in case 2 as am using Text Box . Why ??
2) -
There are two text boxes. i want to shift the cursor from first text box to other or u can say focus from first one to other.. i wrote the code
form_load
text2.setfocus
End Sub
It shows some error. i cant remember that. i know there may be different methods to shift the focus but why its now working by this method.
Got a little doubt on VB here...
these codes may be syntactically incorrect. ignore syntax
1) -
Code 1)
form_load
print "Hello"
End Sub
Code 2)
form_load
Text1.text = "Hello"
End Sub
Though both the cases seem alike.. the message is not displayed (neither in frame or window) in first case whereas it displaying properly in case 2 as am using Text Box . Why ??
2) -
There are two text boxes. i want to shift the cursor from first text box to other or u can say focus from first one to other.. i wrote the code
form_load
text2.setfocus
End Sub
It shows some error. i cant remember that. i know there may be different methods to shift the focus but why its now working by this method.