﻿<?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?)  » Track Click on SF MaintenanceFormToolStrip</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 05 Apr 2026 15:27:38 GMT</lastBuildDate><ttl>20</ttl><item><title>Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/FindPost16385.aspx</link><description>I would like to trap the New,Edit,Delete button click events&amp;nbsp;on the menustrip.</description><pubDate>Mon, 19 May 2008 08:40:23 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/FindPost16439.aspx</link><description>[quote]The edititing state is returning from&amp;nbsp;the childform is still in&amp;nbsp;add mode?&amp;nbsp;&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;If you do not undo the changes then that would be true.&amp;nbsp; When you return you need to either undo or save the changes if you want the state of the BO to change back to "Idle"</description><pubDate>Mon, 19 May 2008 08:40:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/FindPost16420.aspx</link><description>Thanks,&lt;/P&gt;&lt;P&gt;The problem I am having is that I am calling a form childform in Edit mode and canceling it. When I return to te parent form, the maintenacetoolstrip&amp;nbsp;Save button is&amp;nbsp;enabled only. The edititing state is returning from&amp;nbsp;the childform is still in&amp;nbsp;add mode?&amp;nbsp;&amp;nbsp;</description><pubDate>Fri, 16 May 2008 13:35:57 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/FindPost16389.aspx</link><description>Ralph is going dow the right path here...the toolstrip is somewhat "dumb."&amp;nbsp; It is just calling an Add on the BO, so you can handle the BeforeAddNew, AfterAddNew, BeforeDelete, etc.&lt;/P&gt;&lt;P&gt;When you handle the Before events, you can prevent the action from happening.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;[codesnippet]Private Sub MyBo_BeforeAddNew(ByVal e As MicroFour.StrataFrame.Business.BeforeAddNewEventArgs) Handles Me.BeforeAddNew&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Cancel = True&lt;BR&gt;End Sub[/codesnippet]</description><pubDate>Thu, 15 May 2008 09:24:21 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/FindPost16386.aspx</link><description>Hi Michael,&lt;P&gt;don't know, if this is possible the easy way, but you can catch the appropriate events much more precisely on the BO's, which gives you more control, e.g. BeforeSave, AfterSave and so on.&lt;/P&gt;&lt;P&gt;HTH, Ralph</description><pubDate>Thu, 15 May 2008 03:46:11 GMT</pubDate><dc:creator>Ralph Rutschmann</dc:creator></item></channel></rss>