Is there a way to control the order the controls are placed in an ultraflowlayoutmanager control? I have a panel controlled by an ultraflowlayoutmanager and I have seven buttons in it. No matter what I do with the buttons (drag, change tab order) they appear in a set order I can't seem to change. Just curious if this is by design or if I am missing something.
thanks,
Bob
May have solved my own problem: The order can be set by editing the designer.vb file.
Editing it how exactly? I'm having the same problem but i'm not sure what to edit in the designer file.
Thanks, that pointed me in the right direction. I had to do something like this:
'
'ButtonsPanel
Me.ButtonsPanel.Controls.SetChildIndex(Me.AddButton, 0) Me.ButtonsPanel.Controls.SetChildIndex(Me.EditButton, 1)
Me.ButtonsPanel.Controls.SetChildIndex(Me.ActiveateButton, 2)
Me.ButtonsPanel.Controls.SetChildIndex(Me.DeactivateButton, 3) Me.ButtonsPanel.Controls.SetChildIndex(Me.DeleteButton, 4)
In the designer file, find where the controls are added to the container control that the ultraflowlayout manager is using. Then just make sure they are added in the order you want them. In my case I had a windows panel named panButtons. In the designer file, I made sure the order in which the controls were added to the panButtons control was the order I wanted them. Here is my designer code: