<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: MS Access: Enhanced Message Box Replacement</title>
	<atom:link href="http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/</link>
	<description>Just another programming weblog</description>
	<pubDate>Thu, 20 Nov 2008 22:27:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-9331</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Thu, 30 Oct 2008 07:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9331</guid>
		<description>&lt;p&gt;@Scott: glad you find it useful.&lt;br /&gt;
Regarding the default button, it's not really a feature I wanted to use as one of the points of using this enhanced MessageBox is to force users to stop for a second and think about the action they need to perform rather than just hitting ENTER or ESC without thinking, as is the case with the standard box.&lt;/p&gt;

&lt;p&gt;I'll make a note of your suggestion for the next update and probably add it as an option (or a default that can be disabled).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Scott: glad you find it useful.<br />
Regarding the default button, it&#8217;s not really a feature I wanted to use as one of the points of using this enhanced MessageBox is to force users to stop for a second and think about the action they need to perform rather than just hitting ENTER or ESC without thinking, as is the case with the standard box.</p>

<p>I&#8217;ll make a note of your suggestion for the next update and probably add it as an option (or a default that can be disabled).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Cordwell</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-9330</link>
		<dc:creator>Scott Cordwell</dc:creator>
		<pubDate>Thu, 30 Oct 2008 03:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9330</guid>
		<description>&lt;p&gt;Thanks for this, great enhancement. I don't seem to be able to get any of the buttons to be the default button, any help would be greatly appreciated.&lt;/p&gt;

&lt;p&gt;Cheers from downunder
Scott&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for this, great enhancement. I don&#8217;t seem to be able to get any of the buttons to be the default button, any help would be greatly appreciated.</p>

<p>Cheers from downunder
Scott</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Merlin</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-9258</link>
		<dc:creator>Michael Merlin</dc:creator>
		<pubDate>Sat, 27 Sep 2008 22:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9258</guid>
		<description>&lt;p&gt;@Joey:  should work perfectly fine in .adp&lt;/p&gt;

&lt;p&gt;@Renaud:  brilliant work!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Joey:  should work perfectly fine in .adp</p>

<p>@Renaud:  brilliant work!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-9187</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Fri, 19 Sep 2008 18:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-9187</guid>
		<description>&lt;p&gt;Will this tool work with an .adp file? If so, what mods are necessary?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Will this tool work with an .adp file? If so, what mods are necessary?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Reichelt</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8986</link>
		<dc:creator>Stefan Reichelt</dc:creator>
		<pubDate>Wed, 13 Aug 2008 14:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8986</guid>
		<description>&lt;p&gt;Whow! What a great enhancement for my Access Tools. I just tried it and was really happy.&lt;/p&gt;

&lt;p&gt;Now there's a variation I would love to see: A modified InputBox! 
Could you do that, too?&lt;/p&gt;

&lt;p&gt;Regards from Germany,&lt;/p&gt;

&lt;p&gt;Stefan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Whow! What a great enhancement for my Access Tools. I just tried it and was really happy.</p>

<p>Now there&#8217;s a variation I would love to see: A modified InputBox! 
Could you do that, too?</p>

<p>Regards from Germany,</p>

<p>Stefan</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Craven Rohm</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8981</link>
		<dc:creator>Andrew Craven Rohm</dc:creator>
		<pubDate>Tue, 12 Aug 2008 10:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8981</guid>
		<description>&lt;p&gt;Thank you. Pretty good work.&lt;/p&gt;

&lt;p&gt;There's one extension I'd like to implement or see implemented, autowrap for long texts.&lt;/p&gt;

&lt;p&gt;There's one &lt;em&gt;slight&lt;/em&gt; problem with the code as it stands... The Default Buttons are not set properly.  The Code for this looks fine until you notice that the buttons are named in the reverse order to their use.  bt3 is used as button1, etcetera.  The rest of the code reflects this, the Timer event which sets the default does not.  Easy to change in the timer event just replace each occurence of bt1 with bt3 and bt3 with bt1.&lt;/p&gt;

&lt;p&gt;Thanks again,
Andycr&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you. Pretty good work.</p>

<p>There&#8217;s one extension I&#8217;d like to implement or see implemented, autowrap for long texts.</p>

<p>There&#8217;s one <em>slight</em> problem with the code as it stands&#8230; The Default Buttons are not set properly.  The Code for this looks fine until you notice that the buttons are named in the reverse order to their use.  bt3 is used as button1, etcetera.  The rest of the code reflects this, the Timer event which sets the default does not.  Easy to change in the timer event just replace each occurence of bt1 with bt3 and bt3 with bt1.</p>

<p>Thanks again,
Andycr</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8980</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Tue, 12 Aug 2008 07:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8980</guid>
		<description>&lt;p&gt;@Jacques: I can only think of the webbrowser control as a replacement.&lt;br /&gt;
May be too much overhead but it's worth a try.
I've sent you the icons by email.
Let me know if you succeed :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Jacques: I can only think of the webbrowser control as a replacement.<br />
May be too much overhead but it&#8217;s worth a try.
I&#8217;ve sent you the icons by email.
Let me know if you succeed :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jacques</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8979</link>
		<dc:creator>Jacques</dc:creator>
		<pubDate>Mon, 11 Aug 2008 22:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8979</guid>
		<description>&lt;p&gt;I got stuck...&lt;/p&gt;

&lt;p&gt;A friend sent me the A2003 version, but it now appears that the RichText.ocx is blocked because of security reasons (apparently they deem it safe in A2007). I registered RICHTX32.ocx 6.0 (SP6) under references, but the 2003 mdb doesn't compile: 'acTextFormatHTMLRichText' is not found - I found a registry-patch here: http://p2p.wrox.com/topic.asp?TOPIC_ID=10894 - doesn't work on my pc.&lt;/p&gt;

&lt;p&gt;There is also a replacement, by Stephan Lebans: http://www.lebans.com/richtext.htm - registering it, didn't help either.&lt;/p&gt;

&lt;p&gt;Also, the .png images don't load - apparently they don't get included on converting - could you include them separately?&lt;/p&gt;

&lt;p&gt;Any suggestions? I really would like to give this replacement a try - I do see its potential, but as I don't have A2007, I can't run it as such.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I got stuck&#8230;</p>

<p>A friend sent me the A2003 version, but it now appears that the RichText.ocx is blocked because of security reasons (apparently they deem it safe in A2007). I registered RICHTX32.ocx 6.0 (SP6) under references, but the 2003 mdb doesn&#8217;t compile: &#8216;acTextFormatHTMLRichText&#8217; is not found - I found a registry-patch here: <a href="http://p2p.wrox.com/topic.asp?TOPIC_ID=10894" rel="nofollow">http://p2p.wrox.com/topic.asp?TOPIC_ID=10894</a> - doesn&#8217;t work on my pc.</p>

<p>There is also a replacement, by Stephan Lebans: <a href="http://www.lebans.com/richtext.htm" rel="nofollow">http://www.lebans.com/richtext.htm</a> - registering it, didn&#8217;t help either.</p>

<p>Also, the .png images don&#8217;t load - apparently they don&#8217;t get included on converting - could you include them separately?</p>

<p>Any suggestions? I really would like to give this replacement a try - I do see its potential, but as I don&#8217;t have A2007, I can&#8217;t run it as such.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Stockton</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8972</link>
		<dc:creator>Jack Stockton</dc:creator>
		<pubDate>Fri, 08 Aug 2008 22:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8972</guid>
		<description>&lt;p&gt;Your code is way better that what I have written and really works as a replacement to the standard MsgBox function.&lt;/p&gt;

&lt;p&gt;Would like to suggest an enhancement....ability to specify customer text for two.  I often have a business case where I am displaying a message box asking the user if they  want to replace or open the existing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Your code is way better that what I have written and really works as a replacement to the standard MsgBox function.</p>

<p>Would like to suggest an enhancement&#8230;.ability to specify customer text for two.  I often have a business case where I am displaying a message box asking the user if they  want to replace or open the existing.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8971</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Fri, 08 Aug 2008 22:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8971</guid>
		<description>&lt;p&gt;Success! Enhanced Message Boxes are so much easier to identify when they pop up on the screen. The standard msgboxes are so bland they are almost camoflauged. Thank you very much,
Larry&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Success! Enhanced Message Boxes are so much easier to identify when they pop up on the screen. The standard msgboxes are so bland they are almost camoflauged. Thank you very much,
Larry</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8969</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Fri, 08 Aug 2008 07:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8969</guid>
		<description>&lt;p&gt;@Larry,:
you were missing the &lt;code&gt;FormDialog&lt;/code&gt; in your application.&lt;br /&gt;
I have updated the article to list the instructions on how to include the new code into your own application. I realised this was missing.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Larry,:
you were missing the <code>FormDialog</code> in your application.<br />
I have updated the article to list the instructions on how to include the new code into your own application. I realised this was missing.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8968</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Fri, 08 Aug 2008 02:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8968</guid>
		<description>&lt;p&gt;@Geoffrey: good catch, I have updated the code. Thanks for notifying me.&lt;/p&gt;

&lt;p&gt;@Larry: still not sure why you're getting this. Could you send me a zip file of your application so I can investigate? 
Send it to accessblog#nkadesign* (replacing # by @ and * by .com).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Geoffrey: good catch, I have updated the code. Thanks for notifying me.</p>

<p>@Larry: still not sure why you&#8217;re getting this. Could you send me a zip file of your application so I can investigate? 
Send it to accessblog#nkadesign* (replacing # by @ and * by .com).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8967</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Thu, 07 Aug 2008 23:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8967</guid>
		<description>&lt;p&gt;Compile error happens in my application which is in a Trusted location. Didn't rename anything other than MsgBox changed to Box as instructed; for one of my boxes. 
Am I supposed to rename something else? The compile error highlights the following VBA code......
Dim f As New Form_FormDialog.
Larry&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Compile error happens in my application which is in a Trusted location. Didn&#8217;t rename anything other than MsgBox changed to Box as instructed; for one of my boxes. 
Am I supposed to rename something else? The compile error highlights the following VBA code&#8230;&#8230;
Dim f As New Form_FormDialog.
Larry</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Geoffrey</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8965</link>
		<dc:creator>Geoffrey</dc:creator>
		<pubDate>Thu, 07 Aug 2008 16:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8965</guid>
		<description>&lt;p&gt;Thanks for the great object!&lt;/p&gt;

&lt;p&gt;Out of Stack Space Error&lt;/p&gt;

&lt;p&gt;Occurs when modifying DefaultButtonDelay
Try modifying the Enable Buttons In: field in sample form&lt;/p&gt;

&lt;p&gt;Problem occurs in module "Dialog"&lt;/p&gt;

&lt;p&gt;Reads:
&lt;code&gt;
Public Property Let DefaultButtonDelay(delay As Long)
    If delay &lt; 0 Then delay = 0
    DefaultButtonDelay = delay
End Property
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Should read:
&lt;code&gt;
Public Property Let DefaultButtonDelay(delay As Long)
    If delay &lt; 0 Then delay = 0
    m_DefaultButtonDelay = delay
End Property
&lt;/code&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the great object!</p>

<p>Out of Stack Space Error</p>

<p>Occurs when modifying DefaultButtonDelay
Try modifying the Enable Buttons In: field in sample form</p>

<p>Problem occurs in module &#8220;Dialog&#8221;</p>

<p>Reads:
<pre><code>
Public Property Let DefaultButtonDelay(delay As Long)
    If delay &lt; 0 Then delay = 0
    DefaultButtonDelay = delay
End Property
</code></pre></p>

<p>Should read:
<pre><code>
Public Property Let DefaultButtonDelay(delay As Long)
    If delay &lt; 0 Then delay = 0
    m_DefaultButtonDelay = delay
End Property
</code></pre></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8964</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Thu, 07 Aug 2008 06:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8964</guid>
		<description>&lt;p&gt;@Larry: does this happen with the demo or in your application?
Have you renamed the FormDialog? if that's the case, make sure to change the line where you get the error to reflect the new name.&lt;br /&gt;
Another possibility is security settings: if you're getting a security warning when opening the file, make sure you open it from a Trusted location or some functions will be disabled.&lt;/p&gt;

&lt;p&gt;@Alan: it's a good point and it could make replacement much easier, although I usually prefer to err on the side of caution and avoid overriding base functionality to avoid unintended consequences (and keep in line with the "element of least surprise" motto by making things explicit). :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Larry: does this happen with the demo or in your application?
Have you renamed the FormDialog? if that&#8217;s the case, make sure to change the line where you get the error to reflect the new name.<br />
Another possibility is security settings: if you&#8217;re getting a security warning when opening the file, make sure you open it from a Trusted location or some functions will be disabled.</p>

<p>@Alan: it&#8217;s a good point and it could make replacement much easier, although I usually prefer to err on the side of caution and avoid overriding base functionality to avoid unintended consequences (and keep in line with the &#8220;element of least surprise&#8221; motto by making things explicit). :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Cossey</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8963</link>
		<dc:creator>Alan Cossey</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8963</guid>
		<description>&lt;p&gt;This is excellent. I've just added it to a new application and it looks far better and I like the ability to copy the message to the clipboard. It is also very good that it is non-blocking, i.e. I can now more easily chuck users out of my systems if I want, say, after a period of inactivity.
A point that people might find useful is that rather than replace all instances of Msgbox in your code with the word "RichBox", you can rename the new RichBox function as Msgbox. When your code then goes to call the Msgbox function, it then calls the new function, i.e. the old Msgbox gets overridden and the new function is called instead.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is excellent. I&#8217;ve just added it to a new application and it looks far better and I like the ability to copy the message to the clipboard. It is also very good that it is non-blocking, i.e. I can now more easily chuck users out of my systems if I want, say, after a period of inactivity.
A point that people might find useful is that rather than replace all instances of Msgbox in your code with the word &#8220;RichBox&#8221;, you can rename the new RichBox function as Msgbox. When your code then goes to call the Msgbox function, it then calls the new function, i.e. the old Msgbox gets overridden and the new function is called instead.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8962</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Wed, 06 Aug 2008 05:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8962</guid>
		<description>&lt;p&gt;Get a compile error when trying to run it. "User defined Type not defined"........Dim f As New Form_FormDialog.
Have the same references checked in my Access 2007 VBA. Looks great. Would like to solve the problem to be able to use it. Thanks.
Larry&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Get a compile error when trying to run it. &#8220;User defined Type not defined&#8221;&#8230;&#8230;..Dim f As New Form_FormDialog.
Have the same references checked in my Access 2007 VBA. Looks great. Would like to solve the problem to be able to use it. Thanks.
Larry</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Moo</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8958</link>
		<dc:creator>Moo</dc:creator>
		<pubDate>Tue, 05 Aug 2008 22:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8958</guid>
		<description>&lt;p&gt;Renaud,&lt;/p&gt;

&lt;p&gt;I gave it a shot and without the RTF it just wouldn't be the same; so I chose not to pursue it any further.&lt;/p&gt;

&lt;p&gt;The Access 2007 version is striking! Thanks!&lt;/p&gt;

&lt;p&gt;Moo&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Renaud,</p>

<p>I gave it a shot and without the RTF it just wouldn&#8217;t be the same; so I chose not to pursue it any further.</p>

<p>The Access 2007 version is striking! Thanks!</p>

<p>Moo</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8951</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Sun, 03 Aug 2008 07:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8951</guid>
		<description>&lt;p&gt;Hi Glenn,
thanks for the tip!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Glenn,
thanks for the tip!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8947</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Fri, 01 Aug 2008 08:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8947</guid>
		<description>&lt;p&gt;Renaud,&lt;/p&gt;

&lt;p&gt;You can do without the module by manipulating the class module's Instancing property. The catch is that the property sheet doesn't allow the setting you need but you can run a single statement in the immediate window to do the job. See this post http://www.utteraccess.com/forums/showthreaded.php?Cat=&#38;Number=1441683&#38;page=&#38;view=&#38;sb=5&#38;o=&#38;vc=1&lt;/p&gt;

&lt;p&gt;Glenn&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Renaud,</p>

<p>You can do without the module by manipulating the class module&#8217;s Instancing property. The catch is that the property sheet doesn&#8217;t allow the setting you need but you can run a single statement in the immediate window to do the job. See this post <a href="http://www.utteraccess.com/forums/showthreaded.php?Cat=&amp;Number=1441683&amp;page=&amp;view=&amp;sb=5&amp;o=&amp;vc=1" rel="nofollow">http://www.utteraccess.com/forums/showthreaded.php?Cat=&amp;Number=1441683&amp;page=&amp;view=&amp;sb=5&amp;o=&amp;vc=1</a></p>

<p>Glenn</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8946</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Fri, 01 Aug 2008 01:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8946</guid>
		<description>&lt;p&gt;@Glenn:
I use a simple module that I call "ClassFactory" whose only purpose is to return an instance of the Classes in the library. Not sure if there is a better way.&lt;/p&gt;

&lt;p&gt;@Moo:
please be my guest. I have been thinking about this recently but since I only have Access 2007 testing for older version is a bit of a challenge.&lt;/p&gt;

&lt;p&gt;Adapting the code to older versions should not be difficult if you stick to plain text. You will have to remove references to the "TextFormat" property of the txtMessage textbox as it is new in Access2007 and used to switch between plain text and rich text.&lt;/p&gt;

&lt;p&gt;As far as I know, the only way to bring rich text to older versions of Access is to use a webbrowser control.&lt;/p&gt;

&lt;p&gt;If you manage to convert it, please send me the updated database so I can host it here for all to find.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Glenn:
I use a simple module that I call &#8220;ClassFactory&#8221; whose only purpose is to return an instance of the Classes in the library. Not sure if there is a better way.</p>

<p>@Moo:
please be my guest. I have been thinking about this recently but since I only have Access 2007 testing for older version is a bit of a challenge.</p>

<p>Adapting the code to older versions should not be difficult if you stick to plain text. You will have to remove references to the &#8220;TextFormat&#8221; property of the txtMessage textbox as it is new in Access2007 and used to switch between plain text and rich text.</p>

<p>As far as I know, the only way to bring rich text to older versions of Access is to use a webbrowser control.</p>

<p>If you manage to convert it, please send me the updated database so I can host it here for all to find.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Moo</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8945</link>
		<dc:creator>Moo</dc:creator>
		<pubDate>Thu, 31 Jul 2008 22:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8945</guid>
		<description>&lt;p&gt;This is rather awesome! Mind if I take a shot at back-grading it to Access 97?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is rather awesome! Mind if I take a shot at back-grading it to Access 97?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: glenn</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8944</link>
		<dc:creator>glenn</dc:creator>
		<pubDate>Thu, 31 Jul 2008 16:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8944</guid>
		<description>&lt;p&gt;Renaud,&lt;/p&gt;

&lt;p&gt;Thanks for that. Your explanation makes perfect sense and I can't think of a compelling reason to suggest that a class based alternative would be preferable. Code libraries are certainly the way to go for frequently used code.&lt;/p&gt;

&lt;p&gt;While using a class in this case doesn't appear to offer an advantage over your standard module approach, you might be interested to know that there are a couple of ways to include classes in code libraries such that any application using the library can create instances of the relevant classes.&lt;/p&gt;

&lt;p&gt;Glenn&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Renaud,</p>

<p>Thanks for that. Your explanation makes perfect sense and I can&#8217;t think of a compelling reason to suggest that a class based alternative would be preferable. Code libraries are certainly the way to go for frequently used code.</p>

<p>While using a class in this case doesn&#8217;t appear to offer an advantage over your standard module approach, you might be interested to know that there are a couple of ways to include classes in code libraries such that any application using the library can create instances of the relevant classes.</p>

<p>Glenn</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8943</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Thu, 31 Jul 2008 10:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8943</guid>
		<description>&lt;p&gt;Hi Glenn,
I think the main reason I didn't use a class was that I wanted a drop-in replacement for the standard MsgBox.
Using a class would have required creating an instance of it either every time the box would be used, or stored somewhere in a module.
Classes also become an issue as they cannot be instantiated directly from a library (the way I usually re-use code) and you must end-up having a class factory in a Module instead.&lt;/p&gt;

&lt;p&gt;It doesn't mean it can't be done. I just don't think it bring anything useful doing it in a Class as opposed to a Module in this case.&lt;/p&gt;

&lt;p&gt;Maybe I'm wrong and there is a better way.&lt;/p&gt;

&lt;p&gt;In that case let me know :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Glenn,
I think the main reason I didn&#8217;t use a class was that I wanted a drop-in replacement for the standard MsgBox.
Using a class would have required creating an instance of it either every time the box would be used, or stored somewhere in a module.
Classes also become an issue as they cannot be instantiated directly from a library (the way I usually re-use code) and you must end-up having a class factory in a Module instead.</p>

<p>It doesn&#8217;t mean it can&#8217;t be done. I just don&#8217;t think it bring anything useful doing it in a Class as opposed to a Module in this case.</p>

<p>Maybe I&#8217;m wrong and there is a better way.</p>

<p>In that case let me know :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8942</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Thu, 31 Jul 2008 10:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8942</guid>
		<description>&lt;p&gt;Renaud,&lt;/p&gt;

&lt;p&gt;I have briefly looked over your custom message box concept and like what I see. I am curious, however, because unless I am mistaken you have implemented it in Access using standard modules rather than as a class. Is there any particular reason you didn't create a class instead?&lt;/p&gt;

&lt;p&gt;Glenn&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Renaud,</p>

<p>I have briefly looked over your custom message box concept and like what I see. I am curious, however, because unless I am mistaken you have implemented it in Access using standard modules rather than as a class. Is there any particular reason you didn&#8217;t create a class instead?</p>

<p>Glenn</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8940</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Wed, 30 Jul 2008 15:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8940</guid>
		<description>&lt;p&gt;Thank you for your kind words, I'm glad you found some of these articles useful.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you for your kind words, I&#8217;m glad you found some of these articles useful.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Warthen</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8939</link>
		<dc:creator>Ken Warthen</dc:creator>
		<pubDate>Wed, 30 Jul 2008 14:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8939</guid>
		<description>&lt;p&gt;Renaud,&lt;/p&gt;

&lt;p&gt;Your website was a real find.  I love the enhanced message box utility for Access, as well as the modal dialogs with transparent backgrounds.  These are awesome tools that help Access developers to create interfaces that have some visual appeal.  Thanks so much for your efforts and generosity.&lt;/p&gt;

&lt;p&gt;Ken Warthen&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Renaud,</p>

<p>Your website was a real find.  I love the enhanced message box utility for Access, as well as the modal dialogs with transparent backgrounds.  These are awesome tools that help Access developers to create interfaces that have some visual appeal.  Thanks so much for your efforts and generosity.</p>

<p>Ken Warthen</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8783</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Mon, 30 Jun 2008 15:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8783</guid>
		<description>&lt;p&gt;Simply fantastic, great work, thank you!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Simply fantastic, great work, thank you!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marvin</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8778</link>
		<dc:creator>Marvin</dc:creator>
		<pubDate>Mon, 30 Jun 2008 06:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8778</guid>
		<description>&lt;p&gt;Simply smart! Thank you, Sir!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Simply smart! Thank you, Sir!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Renaud</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8613</link>
		<dc:creator>Renaud</dc:creator>
		<pubDate>Sat, 07 Jun 2008 08:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8613</guid>
		<description>&lt;p&gt;Thank you Edwin.
There are plenty more that I'd like to do, just a matter of finding the time...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you Edwin.
There are plenty more that I&#8217;d like to do, just a matter of finding the time&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin Blancovitch</title>
		<link>http://blog.nkadesign.com/2008/ms-access-enhanced-message-box-replacement/#comment-8579</link>
		<dc:creator>Edwin Blancovitch</dc:creator>
		<pubDate>Wed, 04 Jun 2008 21:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nkadesign.com/?p=76#comment-8579</guid>
		<description>&lt;p&gt;WAO !!&lt;/p&gt;

&lt;p&gt;i cannot say more . . .
this is extremely good . . .&lt;/p&gt;

&lt;p&gt;i saw other solutions but yours surpass all others, congratulations . . .&lt;/p&gt;

&lt;p&gt;keep on doing the good work . . .&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>WAO !!</p>

<p>i cannot say more . . .
this is extremely good . . .</p>

<p>i saw other solutions but yours surpass all others, congratulations . . .</p>

<p>keep on doing the good work . . .</p>]]></content:encoded>
	</item>
</channel>
</rss>
