﻿<?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 » Business Objects and Data Access (How do I?)  » BeforeDelete BO Event</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 09:37:53 GMT</lastBuildDate><ttl>20</ttl><item><title>BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost136.aspx</link><description>I am setting &lt;FONT size=2&gt;e.Cancel = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;; in the BeforeDelete event and I am still being prompted with the message "Are you sure you&amp;nbsp;wish to delete the current record".&amp;nbsp; It appears that the setting of the cancel property is working becuase it dosen't matter what I answer to the question,&amp;nbsp; the record is&amp;nbsp;NOT deleted.&amp;nbsp; I am guessing that the message shouldn't be displayed if the delete was canceled,&amp;nbsp; right.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Am I doing something incorrectly or not understanding how it works?</description><pubDate>Mon, 28 Nov 2005 11:31:47 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost159.aspx</link><description>Thanks for the screen shots, Scott, we're in the process of figuring this one out :)</description><pubDate>Mon, 28 Nov 2005 11:31:47 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost158.aspx</link><description>Here is something else that might be related to the transparency issue.&amp;nbsp; This is the Database connection configuration form all I see are the controls, no "form" they just kind of float there in space.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/ca252c5e-b7ba-4261-8012-7566.jpg"&gt;</description><pubDate>Mon, 28 Nov 2005 11:31:41 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost155.aspx</link><description>And here is the video info:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/fd44ee2a-eb1e-4c48-8553-1d46.jpg"&gt;</description><pubDate>Mon, 28 Nov 2005 10:21:41 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost154.aspx</link><description>Here is a shot of the infobox.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/847ef6c5-dd0c-4b35-b5cd-4d75.jpg"&gt;</description><pubDate>Mon, 28 Nov 2005 10:18:19 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost148.aspx</link><description>I will see if we can prevent this from happening.&amp;nbsp; THe reason this is occuring on your computer has somthing to do with video drivers.&amp;nbsp; In .NET, you can set a transparency color and set the .AllowTransparency to True on a form.&amp;nbsp; This prevents some flicker when instantiating.&amp;nbsp; I assume you are having the same problem with a WaitWindow and the InfoBox then, is that correct?&amp;nbsp; To see if you get the same error on an InfoBox, open the sample application, the open the Customers Maintenance form.&amp;nbsp; Click New, then Save.&amp;nbsp; You should get an error message at the bottom left of the &amp;#119;indow.&amp;nbsp; Let me know if this is pink as well.&amp;nbsp; I will look at the MessageForm's transparency and see if we can just turn it off.&amp;nbsp; However, that will be more difficult for a WaitWindow and the InfoBox.&amp;nbsp; These windows actually use the transparency in depth since there is fading and scrolling involved.&amp;nbsp; That is why I would like to see if it happens on them as well.&amp;nbsp; Thanks.</description><pubDate>Mon, 28 Nov 2005 08:00:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost147.aspx</link><description>&lt;SPAN id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl4_lblFullMessage&gt;I am even seeing this behaivor in the sample application.&amp;nbsp; In my project I am calling MessageForm directly,&amp;nbsp; here is the code and screen shot:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT size=2&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem = &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;MessageItem&lt;/SPAN&gt;&lt;FONT color=#000000&gt;();&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem.Title = &lt;/FONT&gt;&lt;SPAN style="COLOR: maroon"&gt;"Delete Aborted"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem.EventID = &lt;/FONT&gt;&lt;SPAN style="COLOR: maroon"&gt;""&lt;/SPAN&gt;&lt;FONT color=#000000&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem.MessageFunctionality = &lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;MessageFunction&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.OK;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem.MessageIcon = &lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;MessagingIcon&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.StopSign;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem.MessageSound = &lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;MessagingSounds&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.ErrorSound;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;loItem.Text = &lt;/FONT&gt;&lt;SPAN style="COLOR: maroon"&gt;""&lt;/SPAN&gt;&lt;FONT color=#000000&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;if&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; (&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.CategoryBO.BrokenRules.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; (&lt;/FONT&gt;&lt;SPAN style="COLOR: teal"&gt;BrokenRule&lt;/SPAN&gt;&lt;FONT color=#000000&gt; loRule &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;in&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;this&lt;/SPAN&gt;&lt;FONT color=#000000&gt;.CategoryBO.BrokenRules.ToArray())&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;loItem.Text += loRule.Description;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;loItem.Text = &lt;/FONT&gt;&lt;SPAN style="COLOR: maroon"&gt;"Delete Aborted"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;MessageForm&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;.ShowMessage(loItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/34df12ae-75d8-4867-a75c-d962.jpg"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;</description><pubDate>Mon, 28 Nov 2005 00:17:08 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost142.aspx</link><description>The pink is the transparent color.&amp;nbsp; It is possible that this could come from your machine if there is some type of video driver ignoring the .NET transparency.&amp;nbsp; Are you calling the MessageForm directly or through a localization key?&amp;nbsp; You might give me an example of how you are calling the window and a screen shot.&amp;nbsp; If you are having an issue I would like to work through it and see if we can reproduce the problem.&amp;nbsp; Thanks.</description><pubDate>Sun, 27 Nov 2005 20:57:35 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost140.aspx</link><description>Will do.&amp;nbsp; Thanks for the info.&lt;/P&gt;&lt;P&gt;By the way,&amp;nbsp; I am using the messageform class and in the help file it looks completly different then what is showing up.&amp;nbsp; On my screen it is a pink window, in the help file it look like a Windows themed &amp;#119;indow.&amp;nbsp; Why is that?&amp;nbsp; Is it a setting on my machine?</description><pubDate>Sun, 27 Nov 2005 13:08:00 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: BeforeDelete BO Event</title><link>http://forum.strataframe.net/FindPost138.aspx</link><description>This actually has to do with the way .NET handles events... your event handler is attached before the event handler in the application framework.  Since you cannot specify which event handler is called in which order, it can produce unpredictable results.  Your best bet is to disable the AutoDeleteConfirmation property on the form and show a delete confirmation on your own.</description><pubDate>Sat, 26 Nov 2005 22:46:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>