Cursor start point

N

NetworkTrade

Hi, I know how to do the Tab Control feature. But I have a Form that has
the Combobox in the Header.

In Tab Control the tabs are segregated. i.e. Tabs within Header, Tabs
within Details, Tabs within Footer,

It appears that one can only control the order of the Tab within its
category. In my case the form is opening so that the cursor is in the first
control of the Details section of the Form.....and I would like the cursor to
begin at the first control of the Headers section....but I see no way to
change/control this using the Tab Control feature.

Would welcome advice...thanx
Would
 
D

Dirk Goldgar

NetworkTrade said:
Hi, I know how to do the Tab Control feature. But I have a Form
that has the Combobox in the Header.

In Tab Control the tabs are segregated. i.e. Tabs within Header,
Tabs within Details, Tabs within Footer,

It appears that one can only control the order of the Tab within its
category. In my case the form is opening so that the cursor is in
the first control of the Details section of the Form.....and I would
like the cursor to begin at the first control of the Headers
section....but I see no way to change/control this using the Tab
Control feature.

Would welcome advice...thanx

Each section of the form has its own tab order, and each page of a tab
control has *its* own tab order. Normally a form will open with the
focus in the first control in the Detail section's tab order. IIRC, If
that control is a tab control, then it will be in the first control in
the first page's tab index. I'm not sure that you aren't confusing "Tab
Control" with "Tab Index", but it doesn't really matter as far as the
solution to your problem is concerned.

If you want to force the focus to be in a control in the form's Header
section when the form first opens, I think you'll have to put some code
in the form's Open or Load event to send it there. So if you want the
control to be in, say, the combo box named "cboSearch", you'd have an
event procedure like this:

'----- start of example code -----
Private Sub Form_Open(Cancel As Integer)

Me!cboSearch.SetFocus

End Sub
'----- end of code -----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top