How do I set the focus on a particular tab in a tab control?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to check to see that all fields in a particular tab are filled in
(this I do with the "Leave" event handler... the code checks whether any of
the textboxes on that particular tab are empty, then displays a messagebox to
ask the user to ensure that all tabs are filled in. I just can't figure out
how to return the focus to the tab in question. Please help.
 
Mucky said:
I'm trying to check to see that all fields in a particular tab are filled
in
(this I do with the "Leave" event handler... the code checks whether any
of
the textboxes on that particular tab are empty, then displays a messagebox
to
ask the user to ensure that all tabs are filled in. I just can't figure
out
how to return the focus to the tab in question. Please help.

Dear Mucky,

check this out. Once someone asked the same question
in the german csharp newsgroup. I wrote the answer in
german but the code is is in english:

Selecting the Tab at runtime Example:
-----------------------------

this.tabControlMainConfig.SelectedTab = this.tabPageExternalApplications;

Here is OP:

http://groups.google.de/group/micro...BC%22+Tabs&rnum=8&hl=en&#doc_4473b5035b04c15f





Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
(e-mail address removed)
Pro-IT Education http://www.pro-it-education.de/
Professional IT-Training and Consulting
 

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

Similar Threads


Back
Top