﻿<?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?)  » How to enter a Blank date ito a SF DateBox</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 17:46:49 GMT</lastBuildDate><ttl>20</ttl><item><title>How to enter a Blank date ito a SF DateBox</title><link>http://forum.strataframe.net/FindPost31223.aspx</link><description>I am using the SF dateBox to store dates, and BO is set not to accept nulls, so a Blank is added in as 01/01/1800, and displays as a blank&lt;br/&gt;&lt;br/&gt;User then selects a date, say today, and it displays as : 17-05-2012&amp;nbsp;&amp;nbsp; all fine so far&lt;br/&gt;&lt;br/&gt;User then realises he really does not want a date in the DateBox&amp;nbsp; (i.e. wants a Blank date)&amp;nbsp; &lt;br/&gt;&lt;br/&gt;The only way I can see of doing this is for the user to type in 01/01/1800, which unless the user knew that this date meant 'Blank', he would have no way of changing the date to blank&lt;br/&gt;&lt;br/&gt;Is there any way of blanking out the Date (by hitting the space bar or similar)&amp;nbsp; other than having to type in a date of 01-01-1800&lt;br/&gt;&lt;br/&gt;I have a lot of forms where , depending on some other controls on the form, the date may or may not be mandatory, so I am looking for an 'intuitive' way of blanking out the date if a date has already been entered into the control</description><pubDate>Fri, 18 May 2012 11:21:06 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: How to enter a Blank date ito a SF DateBox</title><link>http://forum.strataframe.net/FindPost31226.aspx</link><description>You're welcome, Ger. &lt;span&gt;:cool:&lt;/span&gt;</description><pubDate>Fri, 18 May 2012 11:21:06 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: How to enter a Blank date ito a SF DateBox</title><link>http://forum.strataframe.net/FindPost31225.aspx</link><description>Hi Ivan. Thnaks for replying.&lt;br/&gt;&lt;br/&gt;The F6 will come in very handy and I'll have&amp;nbsp; a go at copying your Subclass to C#&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;&lt;br/&gt;Gerard</description><pubDate>Fri, 18 May 2012 08:43:07 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: How to enter a Blank date ito a SF DateBox</title><link>http://forum.strataframe.net/FindPost31224.aspx</link><description>Hi Ger.&lt;br/&gt;&lt;br/&gt;The F6 function key will erase the DateBox contents.&lt;br/&gt;I have inherited the DataBox into my own DateBox and added some functionality, one of them being the ability to use the Del key to perform this same action.&lt;br/&gt;&lt;br/&gt;Here is the code if you decide to go for it:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[codesnippet]&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select Case keyData&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case Keys.Delete&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Delete key pressed, send an F6 to clear contents&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return MyBase.ProcessCmdKey(msg, Keys.F6)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Select&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return MyBase.ProcessCmdKey(msg, keyData)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- the DateBox will throw an exception if user use keys to add or subtract beyond the bounderies&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&amp;nbsp;&amp;nbsp; so in these cases we will just send Home key&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return MyBase.ProcessCmdKey(msg, Keys.Home)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;br/&gt;[/codesnippet]&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Hope it helps.</description><pubDate>Thu, 17 May 2012 08:26:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>