Persistance of splitter

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.
 
G

Guest

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".
 

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