Results 1 to 3 of 3

Thread: Anchor Control

  1. #1

    Thread Starter
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    547

    Anchor Control

    This code example is so that the controls can be anchored to the Form to be resized.

    Although there are several examples of anchoring, I noticed that when placing the controls inside the FormChild, the anchoring becomes irregular at runtime and, with that, the anchored controls do not appear as in the design mode, and overlap each other.

    To get around this I created this example based on the example of colleague SeabrookStan.

    Follow link ... http://www.vbforums.com/showthread.p...king-made-Easy

    In VB.Net there is a form property called AutoScaleMode and so this problem is corrected but in VB6 this property is not. So the present example corrects the problem.
    Attached Files Attached Files
    Last edited by Episcopal; Jul 12th, 2020 at 06:05 PM.

  2. #2

    Thread Starter
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    547

    Re: Anchor Control

    I was already forgetting, I would like to thank my friend LaVolpe, because as always, he is helpful, cordial, and always showing, with patience, the path of the stones.

  3. #3

    Thread Starter
    Fanatic Member Episcopal's Avatar
    Join Date
    Mar 2019
    Location
    Brazil
    Posts
    547

    Re: Anchor Control

    I forgot to mention, to configure the anchor go to UserControl_ReadProperties and you will find:

    Code:
    With m_This
          .AnchorTop = True
          .AnchorBottom = True
          .AnchorLeft = True
          .AnchorRight = True
    End With

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width