﻿<?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?)  » StrataFlix: Copying ActionLinkMenu Items to new forms</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 13:25:01 GMT</lastBuildDate><ttl>20</ttl><item><title>StrataFlix: Copying ActionLinkMenu Items to new forms</title><link>http://forum.strataframe.net/FindPost18313.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Implementing the ActionLinkMenu items used in StrataFlix, there are some common actions items used in most forms, is there a way to copy these items to new forms, or should I add the items to a template form class I created?&lt;/P&gt;&lt;P&gt;So far, when I copy one ActionLinkMenu item to the new form, it is not added to the form's ActionItems collection, only ActionLinkMenu items&amp;nbsp;created from the Property page will be manage trough the form's ActionItems collection property.</description><pubDate>Mon, 04 Aug 2008 16:02:55 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataFlix: Copying ActionLinkMenu Items to new forms</title><link>http://forum.strataframe.net/FindPost18317.aspx</link><description>Thanks Dustin, will do it at the base form level.&amp;nbsp; So far I tested with the template which is very nice, but to be safe will check the base form route with&amp;nbsp;a flag property to turn it On/Off.</description><pubDate>Mon, 04 Aug 2008 16:02:55 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: StrataFlix: Copying ActionLinkMenu Items to new forms</title><link>http://forum.strataframe.net/FindPost18315.aspx</link><description>I'd recommend adding those common items to the base form rather than copying them or adding them to a template, actually. :)&lt;br&gt;
&lt;br&gt;
Technically the action is a component, so when you copy it over it won't be added as an item within the form's action collection. To do it manually, you have to go into the form's designer file and add a [b]Me.ActionItems.Add(yourActionItem)[/b] call once you copy the action across. &lt;br&gt;
&lt;br&gt;
Adding them to a template would work, but the cleanest approach would be to add those common items to your base form and then add a property to turn them on or off when needed. Check out the code of the StrataFlix ApplicationBaseForm to see how to do that. We do it with the Save and Undo actions in there &lt;br&gt;
&lt;br&gt;
Hope it helps :D</description><pubDate>Mon, 04 Aug 2008 15:51:11 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>