![]() |
Problem with DockingPaneManager.SetCommandBars |
Post Reply ![]() |
Author | |
unrecognize ![]() Newbie ![]() Joined: 22 November 2007 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Yes its designed. Use CommandBars_ResizeEvent instead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
unrecognize ![]() Newbie ![]() Joined: 22 November 2007 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
unrecognize ![]() Newbie ![]() Joined: 22 November 2007 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Thanks Oleg, my problem solved. Thanks again. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |