Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

override splitter constraints c# 1

Status
Not open for further replies.

tomcoombs

Programmer
Aug 14, 2003
65
GB
When you pull a splitter over it "stops" when it reaches the edge of the container. How can I stop it doing this, as a want make the container (panel) larger when this happens.

(this happens in the headers of a listview in Windows)


Thanks All and a Happy new Year.

Tom
 
In the SplitterMoving event, check the SplitX property of the SplitterEventArgs and widen the panel if the splitter reaches the edge of the panel.
 
Its always the simply solutions that are the best, now works fine.

Nice One.


Happy New Year.

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top