Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help stop me before I shoot myself or texstbox?

Status
Not open for further replies.

f1car

Technical User
Apr 2, 2001
69
US
Ok I'm trying to write the standard winsock program from a client textbox to the server textbox just as in the help files.

My first problem is that I have to answer a username which is <b>winsock1.senddata = text1.text</b>

next, now when I try to answer the password I again send text1.text which already contains the previous username and only part of the password.

So what I'm looking for is a way to manipulate the text box in a way that I only pass the info that's contained on the <b>line</b> in which my cursor is sitting on; of course I still wish to view the entire text1.text info.

Next problem is that the textboxes are limited in size and when I max it out I simply wish to FIFO the previous info.

Help send info or SKUDS please.
 

I can only help you on the limitation of the textbox control.

From MSDN

However, the RichTextBox control doesn't have the same 64K character capacity limit of the conventional TextBox control.

if you do not want to use the RichTextBox Control you could do a line count or character count of your textbox and output/delete at what ever limit you want to set to.

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top