Active Form  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Active Form

Postby SBarnes » Wed May 26, 2021 3:30 pm

How can you make a given form the active tab in the mdi programmatically?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Active Form

Postby pricerc » Wed May 26, 2021 3:59 pm

SBarnes wrote:How can you make a given form the active tab in the mdi programmatically?


Can't you just set focus to it?
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 518
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 21

Re: Active Form

Postby 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
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Active Form  Topic is solved

Postby SBarnes » Tue Jul 06, 2021 3:29 pm

Ryan's solution also works here
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest