Print Page | Close Window

Problem with DockingPaneManager.SetCommandBars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=8932
Printed Date: 07 June 2024 at 11:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with DockingPaneManager.SetCommandBars
Posted By: unrecognize
Subject: Problem with DockingPaneManager.SetCommandBars
Date Posted: 28 November 2007 at 2:26am
Hi,
I am facing some problem with putting following code into my code.
DockingPaneManager.SetCommandBars(CommandBars.GetDispatch).
When I put above code into my coding, the DockingPaneManager_ResizeEvent can only function for the 1st time. How do I know that? Becuz I try to run in debug, I maximize and minimize the form, it doesn't call DockingPaneManager_ResizeEvent to take action. But after I remove DockingPaneManager.SetCommandBars(CommandBars.GetDispatch) from my code, it works fine everytime I maximize or minimize the form. May I know why?
 
I need the DockingPaneManager.SetCommandBars(CommandBars.GetDispatch) to be used in my code to dispatch DockingPane. Please help.
 
Thanks.



Replies:
Posted By: Oleg
Date Posted: 28 November 2007 at 2:45am
Hello,
Yes its designed. Use CommandBars_ResizeEvent instead.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: unrecognize
Date Posted: 28 November 2007 at 2:56am
hi Oleg, nice to see u again. I have put code below into my program and run it. But when I run in debug mode, it doesn't run through this code. I have put DockingPaneManager.SetCommandBars in frmMain_load. It is I was putting in wrong block ?
 
Private Sub CommandBars_ResizeEvent(ByVal sender As System.Object, ByVal e As System.EventArgs)
        On Error Resume Next
        Dim left As Integer
        Dim top As Integer
        Dim right As Integer
        Dim bottom As Integer
        CommandBars.GetClientRect(left, top, right, bottom)
End Sub
Thansk.


Posted By: Oleg
Date Posted: 28 November 2007 at 3:07am

Hi,

 
try
 
Private Sub CommandBars_ResizeEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CommandBars.ResizeEvent


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: unrecognize
Date Posted: 28 November 2007 at 3:22am

Thanks Oleg, my problem solved.
I doesn't know I was missing Handles CommandBars.ResizeEvents .

Thanks again.




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