﻿<?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?)  » MaskedTextBox</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 02:18:32 GMT</lastBuildDate><ttl>20</ttl><item><title>MaskedTextBox</title><link>http://forum.strataframe.net/FindPost23335.aspx</link><description>I'm not sure if this is a bug or an enhancement request but the v 1.6.7 SF MaskedTextBox causes an unhandled exception when the mask is set to "". This wasn't a problem prior to 1.6.7. I have a need to set the mask property at run time depending on the data. If the data doesn't require a mask I'd like to leave it blank and just let the control render the text value.&lt;/P&gt;&lt;P&gt;Looking a the SF maskedtexbox class, when the mask is not set the MaskTextProvider is set to nothing&amp;nbsp;and causes the unhandled exception when trying to set the renderText variable in the OnPaint method.</description><pubDate>Wed, 03 Jun 2009 21:51:56 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: MaskedTextBox</title><link>http://forum.strataframe.net/FindPost23342.aspx</link><description>Thanks!&amp;nbsp; I will get this taken care of in the morning! :)</description><pubDate>Wed, 03 Jun 2009 21:51:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: MaskedTextBox</title><link>http://forum.strataframe.net/FindPost23339.aspx</link><description>Attached is a debug screen shot of where the error occurs in maskedtextedit.vb in the framework. I coded around it by placing a check to see if Me.MaskedTextProvider is Nothing and if so just setting renderText = me.text.</description><pubDate>Wed, 03 Jun 2009 18:17:41 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: MaskedTextBox</title><link>http://forum.strataframe.net/FindPost23336.aspx</link><description>Do you mind posting your stack trace so I have it for reference?  Thanks.</description><pubDate>Wed, 03 Jun 2009 16:05:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>