﻿<?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 / WinForms (How do I?)  / Track Click on SF MaintenanceFormToolStrip / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Sun, 07 Sep 2008 16:50:47 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/Topic16385-7-1.aspx</link><description>[quote]The edititing state is returning from the childform is still in add mode?  [/quote]&lt;/P&gt;&lt;P&gt;If you do not undo the changes then that would be true.  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/Topic16385-7-1.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 Save button is enabled only. The edititing state is returning from the childform is still in add mode?  </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/Topic16385-7-1.aspx</link><description>Ralph is going dow the right path here...the toolstrip is somewhat "dumb."  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.  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;    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/Topic16385-7-1.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><item><title>Track Click on SF MaintenanceFormToolStrip</title><link>http://forum.strataframe.net/Topic16385-7-1.aspx</link><description>I would like to trap the New,Edit,Delete button click events on the menustrip.</description><pubDate>Thu, 15 May 2008 03:31:21 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item></channel></rss>