by Mike.Sheen » Tue Jul 06, 2021 2:15 pm
SBarnes wrote:How can you make a given form the active tab in the mdi programmatically?
Call the Activate method of the form you want to make the active tab.
Forms can be found by looking at the MdiChildren property of the Manager.MDIParentForm,
In VB:
- Code: Select all
Manager.MDIParentForm.MdiChildren(1).Activate
will set the second tab (it's a zero based index) to be the selected (active) tab.
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution