hiding portion of form

  • Thread starter Thread starter Andy G
  • Start date Start date
A

Andy G

I would like to have a couple inches on the far right of my form be hidden
unless the user clicks the 'open arrow'. Kindof like on the web when there
are + and - to view a section or hide it. I would like to do this same
thing on my form. Are there any tools built into VS 2005 to accomplish
this?

Thanks.
 
Off the top of my head.....If you put a splitter control there, then control
it's position with your arrow you should be in business.

TOm
 
Yes, that would work. Is it possible to click a button and get the form to
'flow' over instead of dragging the form over? I hope this makes sense.
 
Yes, that's what I was thinking.

Set up a for/next loop to change the position of the splitter (that'll get
it to move to where you want it)

You'll probably have to put a Thread.Sleep inside your loop to slow it down.

Tom
 
Hey, thanks. Good stuff work with.

I tried splittler1.Right -=i and it tells me Right is read only? Any ideas
on how to restore the splitter back to original position?

-Andy
 
Try setting Left?

splittler1.Left+=i



Andy G said:
Hey, thanks. Good stuff work with.

I tried splittler1.Right -=i and it tells me Right is read only? Any
ideas on how to restore the splitter back to original position?

-Andy
 
TomB,
You can do it via splitter or you can just dock left a panel there and
change its width. As the panel grows it will push the other docked content
of the form. BTW this is how the splitter works.
 
Good point. I didn't think of that.

Stoitcho Goutsev (100) said:
TomB,
You can do it via splitter or you can just dock left a panel there and
change its width. As the panel grows it will push the other docked content
of the form. BTW this is how the splitter works.
 
Back
Top