Splitter/Form Resize problem

Xombie

Newcomer
Joined
May 1, 2003
Messages
6
Howdy - I've got my form nice and set up to handle resizing & such. However, when I manually resize the form the splitter bar stays where it is. So, if I were to maximize the form, move the splitter bar way to the top and then restore the window, I can only see the 1 pane. The other one is off the screen.

I'm using VB.Net 2003 and I'd figure this'd be one of those obvious things they'd make allowances for when they made the splitter control. Anyone run into this before and feel like sharing some tips?
 
Yar. I finally figured it out. I had to create a form variable that would hold the splitter.splitposition/the total height of the panel I was splitting. Whenever I resized, I'd reverse the formula and set the splitter.splitposition = total panel height*the variable. I had to do something similar in vb6 but I was hoping there was an easy, non-code way to do it here.

I have to say the panels & docking & anchor thing is kinda neat. Takes a little getting used to but it's awful nice to not have to go through so much resize code.
 
Back
Top