Click here to Skip to main content
15,560,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using dotnetbar with visual studio 2010.

I added dotnetbar slide panel to form. When a button is clicked, the panel slides-in & when cancel button pressed, the panel slides out. But, when the form is maximized or re-sized, the slide panel not change it's size. Slide panel anchor mode is left+right+top+bottom (I don't need it in filled dock mode).

Also, if we run the form & maximize the form while the slide panel is visible, then it locks to it's anchor points & maximizes. If we maximize the form while the slide panel invisible, it can't detect the form size & not anchoring.

Please help me on this....

SMerrill88 20-Jan-14 14:17pm    
please ask DevComponents for support.

1 solution

I had that same question.
Achieve solve follows.
First you must calculate the difference between the rectangle of the form and the slidepanel like you have to consider the original location x,y of the object.
After this in the resize event of the form add the following

If Not SlidePanel1.IsOpen Then
    SlidePanel1.OpenBounds = New System.Drawing.Rectangle(OriginalX, OriginalY, Me.DisplayRectangle.Width - DifferenceWidth, Me.DisplayRectangle.Height - DifferenceHeight)
End If

OriginalX,OriginalY,DifferenceWidth and DifferenceHeight are variables and constants which you must declare or set manually.
Sorry, English is not my native language using a translator to answer

Greetings from Venezuela
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900