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
 
Simply put the control on form and set Dock propertiy to "Fill".
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top