CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    6

    Form resize code

    I want the controlls to be in a reltive posission when resizing the form
    please help me with the code, it's very urgent


  2. #2
    Join Date
    Sep 1999
    Location
    Germany
    Posts
    66

    Re: Form resize code

    You need use the Resize event of your forms. For sample, if you have a TextBox Control on your form then you need copy follow code to form declaration section:

    Private Sub Form_Resize ()
    Text1.Move 0,0, ScaleWidth, ScaleHeight
    End Sub

    [email protected]
    http://vbcode.webhostme.com/

  3. #3
    Join Date
    Nov 1999
    Location
    California, USA
    Posts
    40

    Re: Form resize code

    if you need to resize the form just use this code
    form1.width = #whatever number
    form1.height = #whatever number

    PanasonicSubz

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

Featured