Hi, I'm making a custom crtol and i need it to only have a resizeable width.
I handle the base Resize event with this code
Although this resizes the txtPart and cmbPart (a text and combo box respectivly), it does not stop the control from being made taller when in a form design mode.
thx for any help
TJ
if at first you don't succeed, get a 10lb lump hammer
I handle the base Resize event with this code
Code:
Private Sub OBControl_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
Me.txtPart.Width = Me.Width
Me.cmbPart.Width = Me.Width
Me.Height = 24
End Sub
Although this resizes the txtPart and cmbPart (a text and combo box respectivly), it does not stop the control from being made taller when in a form design mode.
thx for any help
TJ
if at first you don't succeed, get a 10lb lump hammer