Friday, October 10, 2008

Stuck in Tab Order Misery

I am unable to set the tab order in the dialog or tab pane.

When I open it in the editor it just says that they are read only.

Trying to do it in control with this code.

Control[] ctrl = this.Controls.Find("controlName",true);
ctrl[0].Focus();
ctrl[0].TabIndex = 0;

This makes it change but it is still ignoring setting of some elements.

The focus is just set for the first element.

This link seems to indicate that the problem has to do with Visual Inheritance.

http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic21172.aspx

Since this is a tab page within another dialog, this seems to make sense.

The steps I took to get the visual editing to work:
  1. rebuilt entire solution
  2. Uninstalled and reinstalled each project
  3. Made sure that all files were writable.
Nothing work.

It look like I might need to set the read at the top level.

No comments: