Fill dockstyle is slow with splitter

S

Sam

Hi all,

I have a splitter sitting between 2 panels (which I use for drawing) on my
main form. The problem that I'm having is that when I resize my form, the
panel(plnDwgContainer) that has the fill dockstyle method seems to be a bit
slow. However, if I try to resize my panel using the splitter, then it seems
to be ok. Does anyone experience this? Below is what I have on my form.
Thanks

Sam



Me.Controls.Add(Me.plnDwgContainer) 'panel control - dockstyle = fill

Me.Controls.Add(Me.splSplitter) 'splitter Control - dockstyle
=bottom

Me.Controls.Add(Me.tlbSecondary) 'toolbar1 control - dockstyle = top

Me.Controls.Add(Me.tlbPrimary) 'toolbar2 control - dockstyle = top

Me.Controls.Add(Me.plnMsgContainer) 'panel control - dockstyle =bottom

Me.Controls.Add(Me.staInfo) 'statusbar control - dockstyle =
bottom
 
C

Cor Ligthert

Sam,

How do you resize your form using the splitter.
Using the splitter you can resize the panel.
Not the form in my opinions.

Cor
 
S

Sam

Hi Cor

Sorry I was incorrect to say that what I should have said is that when I use
the splitter to resize my lower panel, the upper panel which has the fill
dockstyle seems to response faster than when I resize my form.

Sam
 
C

Cor Ligthert

Sam,

Is that not normal that when everything is repainted it goes slower than
with a part of it?

However, why don't you not try it in a new project with only a panel and a
splitter on your form.

That gives in my opinion you a better measurement.

Just an idea.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top