Results 1 to 3 of 3

Thread: How to size a usercontrol????

  1. #1

    Thread Starter
    Hyperactive Member toughcoder's Avatar
    Join Date
    Nov 2002
    Location
    Near, Very Near
    Posts
    340

    How to size a usercontrol????

    Hello fellow programmers, I have a usercontrol, now when i run it, i want it to be resized exactly to the size of the form it is placed on. I think u got it, I want some way to find the height & width of the form it is paced on. Dont tell me to pass a refernece to the form thru a function. Hope u guyz can help...

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    VB Code:
    1. UserControl.Width = UserControl.Parent.Width
    2. UserControl.Height = UserControl.Parent.Height

  3. #3

    Thread Starter
    Hyperactive Member toughcoder's Avatar
    Join Date
    Nov 2002
    Location
    Near, Very Near
    Posts
    340

    thanx axion_sa

    thanx axion_sa
    If Not VB Then Exit
    ------------------------------------------------
    visit me @ http://mzubair.50g.com/

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