Comprehensive, categorized, searchable collection of links to ASP & ASP.NET resources...
Our Directory

Applications
ASP.NET Directory
Books & Media
Community
Components
Other ASP Sites
Reference Material
Software & Server
Tutorials & Code
Web Site Hosts

Expand Directory...
Personlise Results...

Newsgroups

Participate in over
100 ASP & ASP.NET related newsgroups right here @ Fuzzy Software...

.NET Framework
- .net.faqs
- .net.framework
- .net.general
- .net.setup
- .net.scripting
- .net.xml

Web Services
- aspnet.webservices
- msdn.soaptoolkit
- msdn.webservices

SQL Server
- sqlserver.setup
- sqlserver.prog...
- sqlserver.tools

Classic ASP
- asp.db
- asp.general
- asp.components

Scripting
- scripting.jscript
- scripting.remote
- scripting.vbscript
- scripting.wsh

All newsgroups...

ASP Built-in
Objects Reference


Application Object
ObjectContext Object
Request Object
Response Object
Server Object
Session Object

Personalise Fuzzy
Make Homepage
Link To Fuzzy
Bookmark This Page

Add our directory to your site in less than
2 minutes...














Whats New!


From: dtolton (Doug)
Subject: RichText Box how to control the focus
Date: Fri, 07 Jun 2002 19:12:55 GMT

I am writing the contents of StringBuilder object to a RichTextBox.

Basically I have a TextWriterTraceListener writing to a StringWriter
which writes to an underlying String Builder.

// Snippet

m_sbTrace = new StringBuilder();
StringWriter sw = new StringWriter(m_sbTrace);

TextWriterTraceListener tw = new TextWriterTraceListener(sw);

Trace.Listeners.Add(tw);


I have another form that references the string builder object and
loops, updating the RichTextBox in a background thread:

// Snippet

while (frmMain.AppStatus == MainForm.RxApplicationStatus.RUNNING)
{
Thread.Sleep(2000);
rtfHistory.Text = sb.ToString();
}


The problem that I'm encountering is everytime the loop updates it
resets the ViewPort for the RichTextBox. Is there a way to manually
position the ViewPort for the box? Say for instance someone was
looking at some text somewhere in the middle of the output, can I
reposition the ViewPort to that point? Or to the very end of the
output?

If there is a better way to write the trace output in a friendly
viewable fashion I'mto that as well.

Doug
Post a follow up to this message...





Ektron web editor and content management software

Receive all the latest quality ASP
& ASP.NET content direct to your inbox. Sign-up to our newsletter.




DevGuru

ASP Express

DevArticles.com

Menwar.com

World Of .NET

More partners...

Ektron web editor and content management software
  5725 ASP & ASP.NET resources in over 449 categories and growing daily...
Fuzzy Software - asp / asp.net resources, tutorials, code, scripts, applications, components, newsgroups, hosts and much more... Sitemap 0 1 4