Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to move a splitter control at runtime to maintain a minimum Splitter.Top position during splitter movement and form resizing.

 

I put the following code in a sub

 

If split.Top < 685 Then split.Location = New System.Drawing.Point(0, 685)

 

And im calling this sub from the form_resize, split_splittermoving and split_splittermoved events.

 

When I go to move the splitter and split.Top becomes less then 685 is starts flashing beween where my mouse is currently dragging it, and the 685 position (during the _splittermoving event) but when I release the mouse it stays in its position above the 685.

 

Also resizing the form after the splitter has been released at a position higher then 685 does not reposition it.

 

Thanks in advance for any help provided.

Posted

MinSize is the control size I beleive but as I went to look I noticed the MinExtra property which is the size of the undocked area, exactly what I want.

 

All these new properties in .net uuhhhh :)

 

Thanks !

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...