I use several user controls, along with standard ASP.Net controls, to build my webform. Standard controls have a TabIndex property that lets me control the sequence in which the controls receive focus. Can I implement this for my user controls? My user controls are visually simple and look like a standard textbox or dropdown list.
+1
A:
just create a public property on your usercontrol that gets/sets the tabindex property on the ui control (Textbox etc..) that you want it to affect.
Edit: if you call the property "TabIndex" you will have to declare it override
Element
2009-02-03 20:18:27
+2
A:
Here is a link to a CodeProject article on the topic.
http://www.codeproject.com/KB/user-controls/TabIndexUsercontrol.aspx
Jonathan Parker
2009-05-04 07:11:38