Simple but: What's the new way to get Form.InsideHeight

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I have a control (report viewer) that I want to take up the full form height
and width. I would use to use the insideheight/width in vb6. What to do
now?

Thanks
Chris
 
Good idea.

Some controls don't look so great docked with Fill. If you want a little
extra space around the edge you could place it inside a Panel control,
resize it in the designer to have the border desired, and turn on all the
"Anchor"s for your control. Then dock the Panel.

Since I've used .NET I haven't used the Form_Resize event to change any
controls position/size. Some combination of Panels, Splitters, Anchors, and
Docks can accomplish just about any auto and end user resizing.
 
Back
Top