Results 1 to 2 of 2

Thread: Inheriting form size...

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Orlando, Fl
    Posts
    2

    Inheriting form size...

    If I want to make the size of a picture on a form be the same size as the form itself, how do I access the width and height of the form to pass along to the picture
    (i.e.- in VB6 I would code picPicture.Width=frmForm.Width, but .net doesn't show the .Width option of the form. It says that the form is not shared, or something of the sort. )

    Thanks for your help!

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Try using:

    Code:
    Me.Width
    The keyword 'Me' is an internal object reference to the current object.

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