Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - a little problem about TabControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

a little problem about TabControl

 Post Reply Post Reply
Author
Message
leojay View Drop Down
Groupie
Groupie


Joined: 07 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote leojay Quote  Post ReplyReply Direct Link To This Post Topic: a little problem about TabControl
    Posted: 21 April 2005 at 2:30am

I showed a property form, which has a TabContrl,  in Main form.
and when i closed the property form, the Main form should get the focus.
but in fact, it's not. the Main form was sent to back and disappeared. 

why?

attached file is a project that demonstrated the problem:

2005-04-21_022109_TabControlTest.zip

Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2005 at 3:00am

I can reproduce as well

weird...

Back to Top
leojay View Drop Down
Groupie
Groupie


Joined: 07 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote leojay Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2005 at 3:29am

if i delete all InsertItem statements of the TabControl.
The property form acts correctly.

shouldn't i add page into the TabControl?

Back to Top
leojay View Drop Down
Groupie
Groupie


Joined: 07 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote leojay Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2005 at 1:33am

I found a temporary solution for this problem.

calling a frmMain.Show to take the Main Form to foreground after unload the frmProperty can avoid this problem for the moment. but it's not a good idea, the Main Form flicked obviously.

Does anybody has a better idea?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2005 at 3:34am

2005-04-22_033337_1.ZIP

Actually, for TabControl we recommend to use Controls from same form as children.

As advantage it enables Tab Order of form.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
leojay View Drop Down
Groupie
Groupie


Joined: 07 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote leojay Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2005 at 9:20pm

thanks,

but your sample project in samples\Common\TabManager used different forms as child forms.  a misleading sample...  

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.