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).
Printable View
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).
y do u want to do that neway?
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
something like thiswhere SET_WIDTH and SET_HEIGHT are constants representing the width and height you want your control to be.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
Thanks, i give it a go