Results 1 to 5 of 5

Thread: Stop Resize

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    How do i stop my Active X control from being able to be resized at design time, when it is being used in a project (not when the control is being made).

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    y do u want to do that neway?
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    because this control is an MP3 player control that hides its self at run time but at design time people can resize the control and i dont want them to

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    something like this
    Code:
    Private Sub UserControl_Resize()
    If Not (UserControl.Height = SET_HEIGHT) And (UserControl.Width = SET_WWIDTH) Then _
        Call UserControl.Size(SET_WIDTH, SET_HEIGHT)
    End Sub
    where SET_WIDTH and SET_HEIGHT are constants representing the width and height you want your control to be.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    Thanks, i give it a go

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