﻿<?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?)  » Overriding the delete button....</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 01:13:42 GMT</lastBuildDate><ttl>20</ttl><item><title>Overriding the delete button....</title><link>http://forum.strataframe.net/FindPost3178.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:31:39 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Overriding the delete button....</title><link>http://forum.strataframe.net/FindPost3180.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/FindPost3179.aspx</link><description>Regardless of you front end, you will want to capture the BeforeDelete event and place your InputBox and logic here.&amp;nbsp; This way it does not matter where the delete comes from.&amp;nbsp; You want to be careful to hard-code logic with the UI too much.&amp;nbsp; For exa,ple, even the MaintenanceFormToolstrip does not have code that executes the delete or add.&amp;nbsp; Ultimately all of this logic resides on the BO and the MaintenanceFormToolstrip just relies on events to handle itself.&amp;nbsp; Make sense?</description><pubDate>Thu, 28 Sep 2006 15:26:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>