Hi, I am running VB6 and have a text box set to multi line and both scroll bars set. The problem I am having is that when I click on print to print the text box I end up with a copy of the text being place in the text box and then printing.
Code:txtCm.SelStart = Len(txtCm) ' set the starting insertion point at the end of the text txtCm.SelText = txtCm + vbCrLf ' add a string plus the carriage returnFound the problem with duplicate text being printed. I removed the txtCm from the second line of code and replaced it with "" marks. But now I have a problem with how to control the length of the line of text that is allowed to be entered in the text box.Code:txtCm.SelStart = Len(txtCm) ' set the starting insertion point at the end of the text txtCm.SelText = "" + vbCrLf ' add a string plus the carriage return
The txtCm is the name of my txtbox. I would really appreciate the aid of you specialists in this matter. ~ Probie


Reply With Quote


Bookmarks