DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005

    Resizing Program Window

    This may be a stupid question, however I would like to know...

    Right now my program cannot resize or maximize because when doing so it will not move the buttons or objects in the window but just will make the window bigger.

    I want to know how I can do this, so when I go to resize the window, the buttons that are suppose to be on the right side,(after resizing the window), will be on the right side...

    Just to say again if not made clear.
    I want the objects in the window to either get bigger or move along so that everything will be centered after resizing the window...

    Any help would be greatly appreciated...

    Thanks Jobartley515

  2. #2
    Join Date
    Sep 2005
    on the form resize event you'll have to define poisition and/or size of your controls based off the size of your controls

    for example

    Private Sub Form_Resize()
    picture1.width = me.scalewidth
    End Sub

    you want to use the scalewidth and scaleheight properties too, because thats only the area inside the form.

  3. #3
    Join Date
    Nov 2003
    Portland, OR
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Window resizing
    By Mike S in forum Web
    Replies: 1
    Last Post: 04-05-2001, 05:04 PM
  2. Replies: 0
    Last Post: 10-25-2000, 01:46 PM
  3. Replies: 0
    Last Post: 10-25-2000, 01:46 PM
  4. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 8
    Last Post: 09-26-2000, 02:34 AM
  5. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 0
    Last Post: 09-25-2000, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.