looking for extended textbox

G

Guest

Hi all,
last month i tried to make better textbox. What i need?
-get position of cursor (line and column) - no problem
-print string on the position of cursor (speed problem)
-change position of cursor (speed problem)

My class works, but very slowly. I found any problem. For example, if you want to make a new line in textbox, you print char 13 , it's enter. Sometimes it is ok, sometimes it print only rectangle (depends on the font). So, I resolve this problem with SendKeys, but it's very slowly. So, have you any other idea how can i print any string on the curent position except using SendKeys, or text = text.SubString(0,textBox.SelectStart)+"new string"+text.SubString(textBox.SelectStart);

Or doe's anybody know about 3rd party textbox???


Thanks a lot
 
P

Peter Foot [MVP]

If you want a newline to always display correctly use Carriage Return and
Linefeed, in C# this is '\r\n' in VB use the vbCrLf constant.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top