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
Printable View
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
Something like this...
VB Code:
Private Sub UserControl_Resize() If Height <> 16 Or Width <> 15 Then Height = 16 Width = 15 End If End Sub
Thank you...I had been putting UserControl1.Height and UserControl1.Width.
cjqp