Results 1 to 4 of 4

Thread: Fixed size ActiveX

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    Fixed size ActiveX

    Hello

    I'm writing an ActiveX in VB. It's invisible at run time.
    At design time i want it to be of a fixed size (like the timer for ex.) i.e. one cannot resize it..


    I did it once and i forgot how!!

    10x

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Fixed size ActiveX

    If it isn't visible at runtime, then how can someone resize it?

    If you passed it along to another programmer, and it is invisible at runtime, then what difference does its size make?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    Re: Fixed size ActiveX

    he he ...
    I said invisible at run time ....

    BUT i want it to be of a fixed size at design time (when inserted into an app)

    C what i mean ?

  4. #4
    New Member
    Join Date
    Jul 2005
    Posts
    2

    Thumbs up Re: Fixed size ActiveX

    Hello
    try this...


    Private Sub UserControl_Resize()
    On Error Resume Next
    UserControl.Size UserControl.ScaleX(36, vbPixels, UserControl.ScaleMode), UserControl.ScaleY(36, vbPixels, UserControl.ScaleMode)
    End Sub

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