<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://rayharwood.com/Wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://rayharwood.com/Wiki/index.php?action=history&amp;feed=atom&amp;title=Logging_Activities_to_a_Text_Box</id>
		<title>Logging Activities to a Text Box - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://rayharwood.com/Wiki/index.php?action=history&amp;feed=atom&amp;title=Logging_Activities_to_a_Text_Box"/>
		<link rel="alternate" type="text/html" href="http://rayharwood.com/Wiki/index.php?title=Logging_Activities_to_a_Text_Box&amp;action=history"/>
		<updated>2026-11-06T06:28:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.3</generator>

	<entry>
		<id>http://rayharwood.com/Wiki/index.php?title=Logging_Activities_to_a_Text_Box&amp;diff=14&amp;oldid=prev</id>
		<title>Rayharwood: Created page with &quot;To log activities (especially during long-running tasks), create a text box and call &quot;LogAction&quot; to update with text.  * Create Text Box: ** Make Multi-Line ** Drag to cover l...&quot;</title>
		<link rel="alternate" type="text/html" href="http://rayharwood.com/Wiki/index.php?title=Logging_Activities_to_a_Text_Box&amp;diff=14&amp;oldid=prev"/>
				<updated>2013-02-12T13:50:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;To log activities (especially during long-running tasks), create a text box and call &amp;quot;LogAction&amp;quot; to update with text.  * Create Text Box: ** Make Multi-Line ** Drag to cover l...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To log activities (especially during long-running tasks), create a text box and call &amp;quot;LogAction&amp;quot; to update with text.&lt;br /&gt;
&lt;br /&gt;
* Create Text Box:&lt;br /&gt;
** Make Multi-Line&lt;br /&gt;
** Drag to cover large area of form (expand form as necessary)&lt;br /&gt;
** Change Anchor to include bottom and right&lt;br /&gt;
** Change name to tbLogInfo&lt;br /&gt;
** Add Scrollbars&lt;br /&gt;
** Make Read-Only&lt;br /&gt;
** Make Word-Wrap = False&lt;br /&gt;
&lt;br /&gt;
* Add this sub:&lt;br /&gt;
&lt;br /&gt;
    Sub LogAction(ByVal TheText As String)&lt;br /&gt;
        tbLogInfo.Text &amp;amp;= Format(Now, &amp;quot;hh:mm:ss tt&amp;quot;) &amp;amp; &amp;quot; &amp;quot; &amp;amp; TheText &amp;amp; vbCrLf&lt;br /&gt;
        tbLogInfo.Select(tbLogInfo.TextLength, 1)&lt;br /&gt;
        tbLogInfo.ScrollToCaret()&lt;br /&gt;
        Application.DoEvents()&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
This sub appends the text, add CR/LF, and scrolls to the end.  The Application.DoEvents gives Windows a time to catch up on screen paints.&lt;br /&gt;
&lt;br /&gt;
* Call with:&lt;br /&gt;
&lt;br /&gt;
                    LogAction(&amp;quot;Unknown: &amp;quot; &amp;amp; Acct_Rec.AccountName &amp;amp; &amp;quot; (&amp;quot; &amp;amp; Acct_Rec.RowState &amp;amp; &amp;quot;)&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Rayharwood</name></author>	</entry>

	</feed>