Results 1 to 3 of 3

Thread: *RESOLVED* Set height/width of an OCX

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392

    *RESOLVED* Set height/width of an OCX

    I've created an OCX control but want to restrict its height and width. I want it to be set at 16x15 pixels (like the timer control). How would I do this?

    cjqp
    Last edited by cjqp; Dec 27th, 2003 at 05:41 PM.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Something like this...

    VB Code:
    1. Private Sub UserControl_Resize()
    2.     If Height <> 16 Or Width <> 15 Then
    3.         Height = 16
    4.         Width = 15
    5.     End If
    6. End Sub


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392
    Thank you...I had been putting UserControl1.Height and UserControl1.Width.

    cjqp

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