Results 1 to 2 of 2

Thread: moving splitter in desired range????

  1. #1
    shaheed is offline VB.NET Forum Newbie
    .NET Framework
    Join Date
    Jun 2004
    Posts
    20
    Reputation
    113

    Question moving splitter in desired range????

    i have a form with two panels with a splitter in between them...i want to restrict splitter moving toward right side of the form; i.e. i dont want to shrink right-side panel...i only want to move splitter towards left-side of the form upto CERTAIN LIMIT; i dont want to shrink left-panel that much so it gets almost vanished...in short u can say that i want to move splitter in my desired RANGE...how can i do so??? do i hav to code some events of splitter or do i hav to set some properties?? whteva is da solution plz tell me...i will be really grateful...thks in advance...

  2. #2
    Paszt's Avatar
    Paszt is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Jun 2004
    Location
    Raleigh, NC - USA
    Posts
    1,502
    Reputation
    309
    I would suggest setting the Dock property of the left panel to Left, the main (or right) panel to Fill, and the splitter's Dock property to Left. Then you can set the MinExtra property of the splitter to the minimum size that you want the right panel to be.
    — Stephen Paszt

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking