calling telnet from inside my project

biazer911
10-04-2001, 08:57 PM
Is there a way to call to telnet and have it connect to site from inside of a form

I need to pass information to telnet from my application so that the user can see what is happening

I tried using the shell and shellexecute examples supplied and I can get telnet to open in a window by itself but I was wondering if it can be done inside of my application

orufet
10-04-2001, 09:29 PM
This might be useful (http://www.visualbasicforum.com/cgi-bin/bbs/showflat.pl?Cat=&Board=tu&Number=50321&page=0&view=collapsed&sb=5&o=all&part=)

"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

biazer911
10-06-2001, 08:12 AM
Well I found out that I can use socketwrench to do what I wanted to do inside of my program...
The issue is that the text the is returned by the server is way to big for the textbox I am using .

is there a way to cut the length of the received text and force it to a second line within the textbox?

I have set the textbox to multiple lines and have both scrollbars active...all this does is allow me to scroll to see all of the returning text.

I guess what I am asking is there a way to format the text that is recieved

Volte
10-06-2001, 08:13 AM
change it so that only the vertical scrollbar is present.

biazer911
10-06-2001, 08:22 AM
do you happen to know if there is a way to format the text IE: show the colors or formatting inside the window

BTW thanks removing the one scrollbar fixed the other problem

Volte
10-06-2001, 08:27 AM
well, you could use the RichTextBox control, and use the Sel properties.

Like: <pre>RichTextBox1.SelText = "This is green text!"
RichTextBox1.SelStart = 9
RichTextBox1.SelLength = 5
RichTextBox1.SelColor = vbGreen</pre>

would make the textbox say:

This is <font color=green>green</font color=green> text!

<P ID="edit"><FONT class="small"><EM>Edited by VolteFace on 10/06/01 09:28 AM.</EM></FONT></P>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum