I created a custom control consisting of two labels. When I resize the control, I want the second labels right edge to be aligned with the control's right edge.
However, when I put two of these controls on a form and resize one of them, the other one resizes also. And at a higher rate.
I have no idea why they are both resizing.
My code:
l is the first label and tb is the second.Code:Private Sub DualBox_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged Me.tb.Width = Me.Width - Me.tb.Left Me.Height = Me.l.Height End Sub
Any ideas?




Reply With Quote