﻿<?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?)  » Handle mulitiple Themed Tool Strip</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 04:52:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Handle mulitiple Themed Tool Strip</title><link>http://forum.strataframe.net/FindPost26145.aspx</link><description>we are usingThemedToolStrip with 3 buttons, &lt;BR&gt;a PanelManager with 3 pages(Page1,Page2,Page3),each page hav own BuinessObject and MaintenanceFormToolStrip.&lt;BR&gt;it switches. When you click button1, 2 n 3&lt;/P&gt;&lt;P&gt;we required again another ThemedToolStrip2 Contain 4 Button n PanelManager with 4 Pages On Page1 .&lt;/P&gt;&lt;P&gt;All 4 pages hav different-2 own BuinessObject and &lt;/P&gt;&lt;P&gt;MaintenanceFormToolStrip.&lt;BR&gt;&lt;/P&gt;&lt;P&gt;is it possible??&lt;/P&gt;&lt;P&gt;MaintenanceFormToolStrip&lt;BR&gt;</description><pubDate>Mon, 22 Feb 2010 12:34:07 GMT</pubDate><dc:creator>Vikas Gupta</dc:creator></item><item><title>RE: Handle mulitiple Themed Tool Strip</title><link>http://forum.strataframe.net/FindPost26156.aspx</link><description>Adding to Dustin remark, you can have one ToolStripmenu to handle all your panels and simply set the button's visible property based on the  panel manager being activated which would be the same place to change or reassign the form's primary business object, but if you prefer to have one menu per BO, then that will be more difficult since you will have to manually handle the BO events to set all the menu buttons.  Just give it a try, it will work! :hehe:</description><pubDate>Mon, 22 Feb 2010 12:34:07 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Handle mulitiple Themed Tool Strip</title><link>http://forum.strataframe.net/FindPost26151.aspx</link><description>Yes. As Edhy has already answered in a previous thread of yours, you can change the PrimaryBusinessObject of the form in code whenever your panel manager page changes.&amp;nbsp; Here is Edhy's response in that thread in case you missed it:&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;I Vikas,&lt;BR&gt;&lt;BR&gt;If you want to go this route, then in the PanelManager.PageActivated event set the Form.PrimaryBusinessObject to the corresponding BO. Something like this may work, I have not tested&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;&lt;DIV style="BORDER-BOTTOM: #000080 1px dashed; BORDER-LEFT: #000080 1px dashed; PADDING-BOTTOM: 10px; BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: Courier New, Verdana; COLOR: #000080; MARGIN-LEFT: 20px; FONT-SIZE: 8pt; BORDER-TOP: #000080 1px dashed; MARGIN-RIGHT: 20px; BORDER-RIGHT: #000080 1px dashed; PADDING-TOP: 10px"&gt;&lt;BR&gt;Private Sub PanelManager1_PageActivated(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.PanelPageEventArgs) Handles PanelManager1.PageActivated&lt;BR&gt;Select Case Me.PanelManager1.CurrentPage.Name&lt;BR&gt;Case Is = PageCustomers.Name&lt;BR&gt;Me.PrimaryBusinessObject = Me.CustomersBO1&lt;BR&gt;&lt;BR&gt;Case Is = PageOrders.Name&lt;BR&gt;Me.PrimaryBusinessObject = Me.OrdersBO1&lt;BR&gt;&lt;BR&gt;Case Is = PageOrderItems.Name&lt;BR&gt;Me.PrimaryBusinesObject = Me.OrderItemsBO1&lt;BR&gt;End Select&lt;/DIV&gt;</description><pubDate>Mon, 22 Feb 2010 10:38:13 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>