Re: Multiple PromptReceived don't seem to w - WeOnlyDo Discussion board

Re: Multiple PromptReceived don't seem to w (General questions)

by wodDrazen, Monday, October 09, 2006, 17:30 (6620 days ago) @ hactic

Hi,


Well it worked for me, this is my code, please try it out:
-------------------------------------------
private void Form1_Load(object sender, EventArgs e)
{

axwodTelnetDLX1.Connected += new AxWODTELNETDLXLIB._IwodTelnetDLXEvents_ConnectedEventHandler(axwodTelnetDLX1_Connected);

axwodTelnetDLX1.Hostname = server_name ;
axwodTelnetDLX1.Protocol = WODTELNETDLXLIB.ProtocolsEnum.Telnet;
axwodTelnetDLX1.Login = login ;
axwodTelnetDLX1.Password = password ;
axwodTelnetDLX1.Connect( server_name , 23, WODTELNETDLXLIB.ProtocolsEnum.Telnet);


}

void axwodTelnetDLX1_Connected(object sender, AxWODTELNETDLXLIB._IwodTelnetDLXEvents_ConnectedEvent e)
{
textBox1.Text = connected ;
}
-------------------------------------------

My code connect to server and fired Connected Event.

You can get Events by entering for Connected Event in Form Load:

axwodTelnetDLX1.Connected += and double press Tab button on your keyboard and you will get:

-------------------------------------------
axwodTelnetDLX1.Connected += new AxWODTELNETDLXLIB._IwodTelnetDLXEvents_ConnectedEventHandler(axwodTelnetDLX1_Connected);

void axwodTelnetDLX1_Connected(object sender, AxWODTELNETDLXLIB._IwodTelnetDLXEvents_ConnectedEvent e)
{
//here you can add code for Connected Event
}
-------------------------------------------

for other Events procedure is same.

I can prepare you sample if you want. Please send e-mail to techsupport@weonlydo.com for sample.

Hope this helps.


Regards,
Drazen


Complete thread: