Print Page | Close Window

a little problem about TabControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2134
Printed Date: 19 May 2024 at 11:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: a little problem about TabControl
Posted By: leojay
Subject: a little problem about TabControl
Date 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:

http://forum.codejock.com/uploads/leojay/2005-04-21_022109_TabControlTest.zip - 2005-04-21_022109_TabControlTest.zip




Replies:
Posted By: gshawn
Date Posted: 21 April 2005 at 3:00am

I can reproduce as well

weird...



Posted By: leojay
Date 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?



Posted By: leojay
Date 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?



Posted By: Oleg
Date Posted: 22 April 2005 at 3:34am

http://forum.codejock.com/uploads/oleg/2005-04-22_033337_1.ZIP - 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


Posted By: leojay
Date 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...  




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net