2 Attachment(s)
[RESOLVED] Resize Control + Position
I have a user control where in the user control that there are 3 other controls for the PictureBox, button1 and button2.
for the PictureBox control I want to resize when the user control in he will change length and width.
button1 and button2 whereas only change in the position left alone.
I include the following examples in resize images before and after.
thank you
Re: Resize Control + Position
try this:
vb Code:
Private Sub PictureBox1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.Resize
Button1.Left = PictureBox1.Right + 12
End Sub
Re: Resize Control + Position
thank you :)
I think there are also properties such as anchors, which are used to adjust the left and top position of an object.
Re: Resize Control + Position
controls do have an anchor property but it doesn't work relative to another control