473,386 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Outputting information to a text box

Hi!

We have an application that logs a lot of information on its operations to
text files, but we would also like it to log progress to the screen, in a
window/text box etc so progress can be seen at run time.

The standard text box does not allow this kind of flexibility, whilst teh
richTextBox control does seem to but I have been unsuccessful in getting it
to work (seems to operate in exactly the same mode as the normal text box
control)

Can anyone tell me what is the best way to achieve this goal?

Thank for your help!

Phil
Nov 20 '05 #1
2 1093
Phil,

I think you may need to invoke the DoEvents method after setting the Text
property of the text box. This will probably allow the textbox to be
rendered. However, just be aware that depending on you application the
DoEvents may cause other problems.

-Sam Matzen
"Phil Kelly" <ph********@infatech.com> wrote in message
news:cc**********@titan.btinternet.com...
Hi!

We have an application that logs a lot of information on its operations to
text files, but we would also like it to log progress to the screen, in a
window/text box etc so progress can be seen at run time.

The standard text box does not allow this kind of flexibility, whilst teh
richTextBox control does seem to but I have been unsuccessful in getting it to work (seems to operate in exactly the same mode as the normal text box
control)

Can anyone tell me what is the best way to achieve this goal?

Thank for your help!

Phil

Nov 20 '05 #2
* "Phil Kelly" <ph********@infatech.com> scripsit:
We have an application that logs a lot of information on its operations to
text files, but we would also like it to log progress to the screen, in a
window/text box etc so progress can be seen at run time.

The standard text box does not allow this kind of flexibility, whilst teh
richTextBox control does seem to but I have been unsuccessful in getting it
to work (seems to operate in exactly the same mode as the normal text box
control)


What doesn't work with the richtextbox as expected?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Andrei Pociu | last post by:
I have a major doubt about outputting text in ASP .NET when using code behind. I know most of the output you gain from a code behind file (.aspx.cs) is outputted to the Webform (.aspx) using...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
12
by: billelev | last post by:
This is probably a very easy question to answer: I have been outputting some text to a message box, similar to the following: strOutput = "---" & Chr(10) & Chr(10) strOutput = strOutput &...
2
by: meetu3181 | last post by:
Hi All, I am new to perl.I need to parse a text file in unix which is having data like this .I need to to store each value in a seperate variable. The TXT FILE TO BE PARSED: HTTP_PORT = 7779...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.