Print Page | Close Window

Child Form Not Resizing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=19276
Printed Date: 28 March 2024 at 3:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Child Form Not Resizing
Posted By: faakher
Subject: Child Form Not Resizing
Date Posted: 07 December 2011 at 4:31am

Hi,
I've a MDI form with TaskPanel in it.

When any child form shows, It goes behind the TaskPanel. Mean child forms are not resizing according to the available space in MDI form.

Here is a snapshot:

Before Resizing Child Form:



After Resizing Child Form:



Child Forms is going behind the TaskPanel.

Please tell me what to do?


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.1
Platform: Windows XP Professional - SP2
Language: Visual Basic 6.0 SP6



Replies:
Posted By: SuperMario
Date Posted: 07 December 2011 at 10:24am
This form has commandbars?  Either way place the TP in a picture box.


Posted By: faakher
Date Posted: 07 December 2011 at 2:35pm
Yes!
I added command bars controls to show tab work space.
Tell me what to do now?

I want Task Panel and TabWorkSpace as well as my child forms to be resized correctly.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.1
Platform: Windows XP Professional - SP2
Language: Visual Basic 6.0 SP6


Posted By: SuperMario
Date Posted: 08 December 2011 at 9:10am
Try adding the following code to the CommandBars_RepositionAlignedControls event assuming you name your TaskPanel "wndTaskPanel" (or picturebox if you go that route):

Private Sub CommandBars_RepositionAlignedControls(Left As Long, Top As Long, Right As Long, Bottom As Long)

    CommandBars.MoveAlignedControl wndTaskPanel, Left, Top, Right, Bottom

End Sub



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