﻿<?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?)  / Overriding the delete button.... / 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>Wed, 07 Jan 2009 15:15:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Overriding the delete button....</title><link>http://forum.strataframe.net/Topic3178-7-1.aspx</link><description>Yes. Thanks!</description><pubDate>Thu, 28 Sep 2006 15:31:39 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Overriding the delete button....</title><link>http://forum.strataframe.net/Topic3178-7-1.aspx</link><description>Regardless of you front end, you will want to capture the BeforeDelete event and place your InputBox and logic here.  This way it does not matter where the delete comes from.  You want to be careful to hard-code logic with the UI too much.  For exa,ple, even the MaintenanceFormToolstrip does not have code that executes the delete or add.  Ultimately all of this logic resides on the BO and the MaintenanceFormToolstrip just relies on events to handle itself.  Make sense?</description><pubDate>Thu, 28 Sep 2006 15:26:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Overriding the delete button....</title><link>http://forum.strataframe.net/Topic3178-7-1.aspx</link><description>My question deals with the DevExpress version of the Maintenance form but could you answer it regarding both versions of the maintenance form?&lt;br&gt;&lt;br&gt;I want to use the default delete button on the MaintenanceFormToolbar but I need an inputbox to popup and ask for a reason for deletion.  What would be the best way to approach this? Is there a way to override the delete button... or do I put my inputbox in the beforedelete event in the business object and then just disable the default delete confirmation popup?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Thu, 28 Sep 2006 15:19:21 GMT</pubDate><dc:creator>StarkMike</dc:creator></item></channel></rss>