|
-
Apr 17th, 2003, 09:01 AM
#1
Thread Starter
Junior Member
newB: set focus textbox w/WebControls?
Hello all this is my first post and I am new to VB and .NET.
I would like to set focus to a textbox when my page loads.
Here is some of what I have:
Protected WithEvents textbox1 As System.Web.UI.WebControls.TextBox
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Set position of cursor in text box.
'textbox1.focus 'NOT WORKING??
I think the problem is with WebControls. Is there another option?
I don't know about WebControls vs Others. I am trying to modify existing code.
I have also tried to set the tab order but this did not help.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|