﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » MaintenanceFormToolbar question...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:10:33 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost6854.aspx</link><description>You would have to do this at run-time.&amp;nbsp; The MaintenanceFormToolstrip is nothing more than a pre-built toolstrip control with some built-in functionality.&amp;nbsp; You can reference the Items collection and do anything you want.&amp;nbsp; ANything you do at design-time is going to be over-written due to the nature of the collection and how it is managed through .NET.</description><pubDate>Fri, 16 Feb 2007 07:17:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2903.aspx</link><description>I've created a SF DevExpress Maintenance form and I want to know if i could add my own buttons or what not to the MaintenanceFormToolbar.</description><pubDate>Fri, 16 Feb 2007 07:17:54 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost6851.aspx</link><description>Can you please tell me how can i set the index or order for the new button. i am asking you the property i should set for the new items (buttons) i added in the tool strip.&lt;br&gt;
&lt;br&gt;
Thanks.</description><pubDate>Fri, 16 Feb 2007 07:01:29 GMT</pubDate><dc:creator>Vikram Saxena</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2911.aspx</link><description>Gotcha. Thanks :)</description><pubDate>Tue, 19 Sep 2006 14:09:18 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2910.aspx</link><description>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.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; The designer will never generate the code to properly order the buttons.&amp;nbsp; 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.</description><pubDate>Tue, 19 Sep 2006 13:53:40 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2909.aspx</link><description>Cool. Let me push a little further. :D I noticed that if i add a button using the shortcut there on the toolstrip you're right I could not move my item to the left... however when i went into the items collection through the properties menu i was able to position my button wherever i wanted it.&lt;br&gt;
&lt;br&gt;
I guess I'm asking why you're telling me I can't inject my buttons inbetween your standard items? Will it mess up the code because the indexes arent the same or what?&lt;br&gt;
&lt;br&gt;
Thanks.;)</description><pubDate>Tue, 19 Sep 2006 13:32:28 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2908.aspx</link><description>Yes, but they would have to be at the very end.&amp;nbsp; They could not be injected between the existing button controls.</description><pubDate>Tue, 19 Sep 2006 13:26:17 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2907.aspx</link><description>Would it be possible to add buttons to the ToolStrip if I were using just a SF Maintenance form without the DevExpress stuff?</description><pubDate>Tue, 19 Sep 2006 13:24:28 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: MaintenanceFormToolbar question...</title><link>http://forum.strataframe.net/FindPost2904.aspx</link><description>The problem is the DevExpress toolbars...I really don't like the way that they manage their bars at all.&amp;nbsp; You will not be able to add new buttons to the MaintenanceFormToolbar itself, but you can add another toolbar through the same BarManager control.&amp;nbsp; At present this is just the way it is with the DevExpress toolbars since we have to be able to control the buttons of the MaintenanceFormToolbar.&amp;nbsp; Sorry. :ermm:</description><pubDate>Tue, 19 Sep 2006 10:48:26 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>