Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
No, the problem is the initialization order... the MaintenanceFormToolstrip has its own InitializeComponent() method that gets called when it is instantiated... inside this method, the standard buttons get added to the collection. However, the buttons that you add to the toolstip get added in the form's InitializeComponent() method, which is called after the MaintenanceFormToolstrip's InitializeComponent() method. So, the standard buttons have already been added to the toolstrip when your form goes to add the rest of the buttons, so your buttons get added to the end. The designer will never generate the code to properly order the buttons. However, the order of the buttons certainly does not matter, so you can add any code you want after the form's InitializeComponent() method (in the constructor) to order the buttons in any way you like, but you have to do it manually.
|