Positioning forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Positioning forms

    My form layout window(vb6.0) doesnt show any forms in it,but i want to position my forms..is there any settings i should change?or is there any alternative to position my forms(by coding)?
  • Mayur2007
    New Member
    • Aug 2007
    • 67

    #2
    Originally posted by vdraceil
    My form layout window(vb6.0) doesnt show any forms in it,but i want to position my forms..is there any settings i should change?or is there any alternative to position my forms(by coding)?
    Hi,
    I think you are asking to do the forms size and position so try with the StartUpPosition property that will solve the problem.
    You can use Height and Width property of form to set the size of form.
    Last edited by Killer42; Oct 14 '07, 08:35 AM.

    Comment

    • vdraceil
      New Member
      • Jul 2007
      • 236

      #3
      I want to position my forms using code and not sizing.

      Comment

      • Ali Rizwan
        Banned
        Contributor
        • Aug 2007
        • 931

        #4
        Originally posted by vdraceil
        I want to position my forms using code and not sizing.
        Hi,
        Use this code

        Code:
        Me.Left= Position on left
        Me.Top= Position on top
        GOODLUCK
        ALI

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by Ali Rizwan
          Code:
          Me.Left= Position on left
          Me.Top= Position on top
          Also consider the .Move method. It lets you combine everything into one statement.

          Comment

          • Ali Rizwan
            Banned
            Contributor
            • Aug 2007
            • 931

            #6
            Originally posted by Killer42
            Also consider the .Move method. It lets you combine everything into one statement.
            Yeah,
            But in move form will directly to X and Y positions both but in .Left and .Top user can enter only a single command.
            No it can be done by .move also.
            .Move is good.

            Thanx

            Comment

            Working...