Results 1 to 5 of 5

Thread: code to make a form height and width bigger

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    code to make a form height and width bigger

    i need help please. could some1 help me, i want to make a form size change to a different size from clicking on a button.

  2. #2
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    Re: code to make a form height and width bigger

    VB Code:
    1. me.width=50
    2. me.height50
    3. me.size=new size(50,50)
    take your pick!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    Re: code to make a form height and width bigger

    is that for vb.net and does that code go into the button and make the form larger. btw cheers for the help.

  4. #4
    Addicted Member
    Join Date
    Aug 2005
    Location
    Chesterfield, UK
    Posts
    162

    Re: code to make a form height and width bigger

    Its VB.NET code, the width and height come from VB6 but the size is a new .Net property, so I guess thats the one to use.

    If you want the form to size when you Click the button then place it in the button_click event

    VB Code:
    1. Private Sub Button1_Click(....) Handles Button1.Click
    2.   me.size=new size(50,50)
    3. End Sub

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Mar 2006
    Posts
    31

    Re: code to make a form height and width bigger

    thanks mate. that helps me a lot cheers.

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