Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7738433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:15:49+00:00 2026-06-01T08:15:49+00:00

In VB6 I created a form with some textboxes, listboxes, and command buttons on

  • 0

In VB6 I created a form with some textboxes, listboxes, and command buttons on it. I set the X-Y positions of all of these controls using something like

control2.Top = form.Height * 0.50   'sets the Y-position
control2.Left = form.Width * 0.35   'sets the X-position

control3.Top = form.Height * 0.50
control3.Left = form.Width * 0.45

However, when I click on the Maximize button of my app all of the controls stay in the same place, but shifted a little more towards the upper left corner of the form. In the meantime, clicking on Maximize also creates a lot of blank space towards the lower right corner of the form.

How do I make it so that clicking on the Maximize button (the one that looks like an empty square in the upper right corner) informs my program that the form.Height and form.Weight has changed and that everything needs to be redrawn?

Or, is there is another way to do this such that we eliminate the shifting of all of my controls towards the upper left corner and eliminate the creation of new, blank space towards the lower right corner? Thanks in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:15:51+00:00Added an answer on June 1, 2026 at 8:15 am

    Your form has an event called “Resize”. That event is triggered every time the form resizes.

    Private Sub Form_Resize()
        'Insert your code here
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm stuck with VB6 and I'm using Form.Controls.Add(...) to create a bunch of controls
I am trying to uncompress some data created in VB6 using the zlib API.
I have created an ActiveX dll using VB6 and packaged it using the Package
I have a wrapper managed application(.net) over a COM Component(created using vb6) where Com
Using VB6, I have created an Outlook plugin, that has a property page. The
In short: I have a VB6 form with ActiveX control that contains buttons, and
In VB6 events created in an ActiveX component were stated like this: Public Event
Using VB6 Code. Dim posn As Integer, i As Integer Dim fName As String
Using VB6 code Dim fso As FileSystemObject Dim TS As TextStream Dim TempS As
Using VB6 and Access 2003 Query Select Temp.* into NewTable from Temp Table Name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.