I have a button already on the panel that is not visible until scrolling (since the size of the panel view is smaller than the x-cordinate of button A). I want to place button after button buttonA. How to do it? I use this, but it only puts the button to the left of the control view not on the inside maximum width.
I want it to be general, if any button goes beyond the maximum internal width, the next button should even go to that button. I can not use the docking station, since I need the same function to be placed on top.
"New question editing"
Buttons are generated after each click and have an arbitrary width. A button can be removed, but a new button must be added to the maximum width occupied so far, if the last button is removed, the next button should take place after the second leftmost button
button1.Left = buttonA.Parent.Size.Width+button1.Width;

source
share