Home All Groups Group Topic Archive Search About

Rich Text Box Progress Display problems

Author
13 Nov 2006 8:55 PM
mgoold2002
Hi.  I have a class that call another class which handles progress
messaging.  The progress messaging class has an RTF that's supposed to
display progress messages using the appendtext method.

When I call the progress messaging class, the form pops up, but the rtf
fails to display or show messages.  Any idea what the prob might be?
Here's the calling code:

            Dim ProcessUpdates1 As New Progress_Updates

            ProcessUpdates1.Show()
            ProcessUpdates1.ProcessUpdates.BringToFront()
            ProcessUpdates1.ProcessUpdates.AppendText("Please Wait...")
            ProcessUpdates1.ProcessUpdates.Focus()
            ProcessUpdates1.ProcessUpdates.ScrollToCaret()

Of course, "ProcessUpdates" references the RTF

Thanks,

Henry

Author
14 Nov 2006 12:49 AM
Herfried K. Wagner [MVP]
<mgoold2***@hotmail.com> schrieb:
> When I call the progress messaging class, the form pops up, but the rtf
> fails to display or show messages.  Any idea what the prob might be?
> Here's the calling code:
>
>            Dim ProcessUpdates1 As New Progress_Updates
>
>            ProcessUpdates1.Show()
>            ProcessUpdates1.ProcessUpdates.BringToFront()

What do you want to archieve with the line above?

>            ProcessUpdates1.ProcessUpdates.AppendText("Please Wait...")

Are you sure you are calling the method from within the thread the control
has been created on?

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>