Quantcast
Viewing all articles
Browse latest Browse all 12583

SplitContainer and TabIndex

I have a dialog with a splitcontainer on it. It has a TreeView on the left and a Grid on the right. The TreeView is primarily for reference, so I would like focus to start in the grid on the right.

 

I thought this would be simple, but I cannot figure out how to do it.

 

If I explicitly set the TabOrder of the TreeView to 5 and the Grid to 0, the runtime still sets focus to the TreeView.

 

Also, if I run View | TabOrder, *it* sees the TreeView tab order as 0.0.0.0.5 and the Grid to 0.0.0.1.0.

 

Anyone know how to get around this?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>