Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi...I have a couple of User Controls, one of them contains a dropdown list that loads a list of the US States from the database. When I have this user control in a form, along with many other textboxes, how do I make the tab index work?

 

Let us suppose I have two textboxes and the user control in a form. The tab index of the first textbox is 1, and that of the second textbox is 2. But if I want to move the control on the form to the usercontrol after the textbox2, how do I set up the tab index of the usercontrol. One way I can achieve that is by setting up the tabindex to 3 while creating the user control. But this is not going to work when I have more than two controls before the usercontrol in another form!!!

 

I hope you understood what I mean.

 

Thanks in advance,

SJ

Posted

Hi...I tried to do that. But I think you know that a user control does not have 'tabindex' attribute!! And of course, if we set up a tabindex to some number within the user control, we cannot re-use the control in another form as the position of the user control may vary.

 

SJ

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...