Persistance of splitter

  • Thread starter Thread starter Sid Price
  • Start date Start date
S

Sid Price

Using VS 2005 VB.NET I am trying to persist (using MySettings) the splitter
position in a splitter container. I have defined a property for the
SplitterDistance in the control's application data and using breakpoints I
can see that the value written to settings is indeed recalled when the form
is re-opened. However, the actual position of the splitter that is displayed
is incorrect; it seems always to be too far to the right, almost like some
other value is being added.

Any suggestions on what is happening?

The two list views in either side of the splitter have only their column
widths persisted, the size of the listviews is not persisted.

Thank you,
Sid.
 
Dont you have to move the panel or whatever the splitter is against? So you
would be setting/saving the panel postion and size, not the
"splitterdistance".
 
Back
Top