Re: [VB5] Can controls resize and position themselves?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Phill W. wrote:
Gilles Ganault wrote:

Although forms have a WindowState property that can be set to "2 -
Maximized" so at least forms can fit any screen, widgets within forms
don't seem to have any property so they can resize and/or reposition
themselves to fit the user's screen definition:

Are there tricks in VB, or third-party tools that would solve this
issue?

Put code into Form_Resize to move and resize [all] the controls to where
you want them to be.

Maybe with this being the first statement:

If Me.WindowState = vbMinimized Then Exit Sub

Or at least a hearty:

On Error Resume Next

<g>
--
..NET: It's About Trust!
http://vfred.mvps.org


.



Relevant Pages

  • Re: Problems fitting large diagram to page in Visio 2007
    ... Select all on your drawing page ... Now you'll have a 'dumb' graphic that you can resize without messing up any of your Visio data. ... I am working on a set of process flows, and unlike on other visio files, I am unable to resize to Fit to Page. ... I thought perhaps that Visio itself may have stopped working but have checked other files and sure enough - if my diagram goes over the page, and I go to Page set up and select "fit to page 1 x 1" it resizes the diagram to fit. ...
    (microsoft.public.visio.general)
  • Re: div at top not expanding with content
    ... In my case I had a 900 px image that was too large to fit on my ... and scroll bars appeared just to accommodate that image. ... resizing of my browser I do, all of my contents resize to fit so that ... We do have contour plot images that may be 900px or more wide ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: How to make a photo collage?
    ... is there any software that can make a collage with white border b/w ... hate the idea of spending more than 1 hour by using photo editor of ... you'll have to resize each image to fit the rectangle you intend to fit ... you don't have to resize. ...
    (rec.photo.digital)
  • Re: [VB5] Can controls resize and position themselves?
    ... Maximized" so at least forms can fit any screen, widgets within forms ... don't seem to have any property so they can resize and/or reposition ...
    (microsoft.public.vb.general.discussion)
  • Re: Resize dynamically the size of the CFormView
    ... display a child dialog on it at runtime. ... Visual Studio creates automatically resource entry for my view class. ... button and I would like the view to always fit the size of the dialog. ... cannot resize the view and a scrollbar is created, ...
    (microsoft.public.vc.mfc)