Click here to Skip to main content
15,881,859 members
Home / Discussions / C#
   

C#

 
QuestionGet the Selected item from List view control Pin
udhyakumarm11-Sep-07 0:21
udhyakumarm11-Sep-07 0:21 
AnswerRe: Get the Selected item from List view control Pin
rohitsrivastava11-Sep-07 0:39
rohitsrivastava11-Sep-07 0:39 
GeneralRe: Get the Selected item from List view control Pin
udhyakumarm11-Sep-07 2:11
udhyakumarm11-Sep-07 2:11 
QuestionInserting a row into excel spreadsheet Pin
lourensG11-Sep-07 0:17
lourensG11-Sep-07 0:17 
AnswerRe: Inserting a row into excel spreadsheet Pin
Vikram A Punathambekar11-Sep-07 1:18
Vikram A Punathambekar11-Sep-07 1:18 
GeneralRe: Inserting a row into excel spreadsheet Pin
lourensG11-Sep-07 1:23
lourensG11-Sep-07 1:23 
QuestionRegarding telnet Pin
praveenkumar palla10-Sep-07 23:41
praveenkumar palla10-Sep-07 23:41 
AnswerRe: Regarding telnet Pin
Ermak8611-Sep-07 0:08
Ermak8611-Sep-07 0:08 
use TcpClient class.
to connect use its constructor TcpClient(String hostname, int Port)

to write a command:
byte[] buf = System.Text.ASCIIEncoding.ASCII.GetBytes(command.Replace("\0xFF","\0xFF\0xFF"));
TcpClient.GetStream().Write(buf, 0, buf.Length);

to read:
byte[] bytes = new byte[tcpClient.ReceiveBufferSize];
TcpClient.GetStream().Read(bytes, 0, (int)tcpClient.ReceiveBufferSize);
String s = Encoding.ASCII.GetString(bytes);

Choose encoding which you need
in read and write instead of TcpClient use your TcpClient instance name

Pawel
QuestionRe: Regarding telnet Pin
praveenkumar palla23-Sep-07 18:46
praveenkumar palla23-Sep-07 18:46 
QuestionInserting a row into excel spreadsheet Pin
lourensG10-Sep-07 23:25
lourensG10-Sep-07 23:25 
AnswerRe: Inserting a row into excel spreadsheet Pin
pmarfleet10-Sep-07 23:27
pmarfleet10-Sep-07 23:27 
GeneralRe: Inserting a row into excel spreadsheet Pin
lourensG10-Sep-07 23:43
lourensG10-Sep-07 23:43 
GeneralRe: Inserting a row into excel spreadsheet Pin
pmarfleet11-Sep-07 0:50
pmarfleet11-Sep-07 0:50 
GeneralRe: Inserting a row into excel spreadsheet Pin
Jimmanuel11-Sep-07 4:59
Jimmanuel11-Sep-07 4:59 
QuestionHow to cancel selection char in RichText control ? Pin
Yanshof10-Sep-07 23:17
Yanshof10-Sep-07 23:17 
AnswerRe: How to cancel selection char in RichText control ? Pin
Giorgi Dalakishvili10-Sep-07 23:33
mentorGiorgi Dalakishvili10-Sep-07 23:33 
AnswerRe: How to cancel selection char in RichText control ? Pin
Ermak8610-Sep-07 23:38
Ermak8610-Sep-07 23:38 
GeneralRe: How to cancel selection char in RichText control ? Pin
Yanshof11-Sep-07 18:08
Yanshof11-Sep-07 18:08 
GeneralRe: How to cancel selection char in RichText control ? Pin
Ermak8611-Sep-07 22:22
Ermak8611-Sep-07 22:22 
QuestionFreeze user access Pin
Glen Harvy10-Sep-07 22:52
Glen Harvy10-Sep-07 22:52 
AnswerRe: Freeze user access Pin
Giorgi Dalakishvili10-Sep-07 23:03
mentorGiorgi Dalakishvili10-Sep-07 23:03 
GeneralRe: Freeze user access Pin
Glen Harvy11-Sep-07 0:07
Glen Harvy11-Sep-07 0:07 
GeneralRe: Freeze user access Pin
Luc Pattyn11-Sep-07 0:44
sitebuilderLuc Pattyn11-Sep-07 0:44 
GeneralRe: Freeze user access Pin
Glen Harvy11-Sep-07 1:52
Glen Harvy11-Sep-07 1:52 
GeneralRe: Freeze user access Pin
Luc Pattyn11-Sep-07 2:15
sitebuilderLuc Pattyn11-Sep-07 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.