0
votes

Say, if I have some dialog box opened in Visual Studio 2017 in the visual editor:

enter image description here

If I want to rearrange the tab order of these controls, the method I was using was to open the .rc file in a text editor and rearrange control definitions there:

enter image description here

So now I'm wondering if there's a way to do this via visual editor?

PS. I found that the "Layout" toolbar has the "Tab order" button:

enter image description here

but it's always grayed out.

2

2 Answers

2
votes

You want "Tab Order" on the "Format" menu (possibly has a Ctrl-D shortcut). Then just click the controls in the tab order you want.

1
votes

Since I cannot add a comment to previous post, I'm posting this as answer.

Yes, Ctrl+D in the dialog resource editor will turn on tab order (z-order) editing and you can click on each blue number label to change the order from the beginning.

To start renumbering from a specific control, hold Ctrl or Shift (used to be Ctrl+Shift in older VS) then click on that control's blue label, release the keys and click on the next control that should follow in Tab order.

Say for example you want to make sure a spin control follows its edit box in tab order (for Auto Buddy assignment), hold Ctrl and click on that edit box, release Ctrl and click on spin.

The above trick will allow you to easily swap the two controls as well.