Click here to Skip to main content
15,922,630 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#:Problem in MenuStrip Hiding in MDIParent. Help Me! Pin
kssknov19-Dec-07 23:50
kssknov19-Dec-07 23:50 
GeneralRe: C#:Problem in MenuStrip Hiding in MDIParent. Help Me! Pin
CKnig20-Dec-07 0:33
CKnig20-Dec-07 0:33 
GeneralRe: C#:Problem in MenuStrip Hiding in MDIParent. Help Me! Pin
kaluk19-Dec-07 23:10
kaluk19-Dec-07 23:10 
GeneralSearching for values in an rtf file and comparing them to values held in another array Pin
Spacedmc19-Dec-07 20:51
Spacedmc19-Dec-07 20:51 
GeneralRe: Searching for values in an rtf file and comparing them to values held in another array Pin
Paul Conrad24-Dec-07 19:39
professionalPaul Conrad24-Dec-07 19:39 
GeneralPrinting Pin
Shaahinm19-Dec-07 20:29
Shaahinm19-Dec-07 20:29 
GeneralRe: Printing Pin
Paul Conrad24-Dec-07 19:39
professionalPaul Conrad24-Dec-07 19:39 
QuestionConfused Between Two Codes ....Help Pin
sindhutiwari19-Dec-07 20:21
sindhutiwari19-Dec-07 20:21 
hi,
i am having two codes to send a message to another PC by using Socket Connection........soc is the object of socket....str is a string variable

Code 1.
string str = textBox1.Text;
byte[] msg = Encoding.ASCII.GetBytes(str);
soc.Send(msg);

Code 2.

Object objData = textBox1.Text;
byte[] byData =System.Text.Encoding.ASCII.GetBytes(objData.ToString ());
soc.Send (byData);


In the code 1 message is stored in a string then converted to byte stream then it's send

In the Code 2 a object of the textbox text is created then it is converted to byte stream ,,n then it is sended ...
So which one is the correct way...plz do reply .
Regards
Sindhu tiwari
its me sid

GeneralRe: Confused Between Two Codes ....Help Pin
N a v a n e e t h19-Dec-07 20:40
N a v a n e e t h19-Dec-07 20:40 
GeneralRe: Confused Between Two Codes ....Help Pin
Pete O'Hanlon19-Dec-07 22:57
mvePete O'Hanlon19-Dec-07 22:57 
GeneralRe: Confused Between Two Codes ....Help Pin
Christian Graus19-Dec-07 23:24
protectorChristian Graus19-Dec-07 23:24 
GeneralRe: Confused Between Two Codes ....Help Pin
Pete O'Hanlon20-Dec-07 0:38
mvePete O'Hanlon20-Dec-07 0:38 
GeneralRe: Confused Between Two Codes ....Help Pin
N a v a n e e t h20-Dec-07 0:07
N a v a n e e t h20-Dec-07 0:07 
GeneralRe: Confused Between Two Codes ....Help Pin
Colin Angus Mackay20-Dec-07 0:32
Colin Angus Mackay20-Dec-07 0:32 
GeneralRe: Confused Between Two Codes ....Help Pin
Pete O'Hanlon20-Dec-07 0:42
mvePete O'Hanlon20-Dec-07 0:42 
GeneralRe: Confused Between Two Codes ....Help Pin
Christian Graus19-Dec-07 21:45
protectorChristian Graus19-Dec-07 21:45 
GeneralRe: Confused Between Two Codes ....Help Pin
Anthony Mushrow19-Dec-07 23:54
professionalAnthony Mushrow19-Dec-07 23:54 
GeneralRe: Confused Between Two Codes ....Help Pin
sindhutiwari20-Dec-07 2:46
sindhutiwari20-Dec-07 2:46 
GeneralRe: Confused Between Two Codes ....Help Pin
Anthony Mushrow20-Dec-07 2:50
professionalAnthony Mushrow20-Dec-07 2:50 
GeneralWithout Framwork can run .net applications Pin
jason_mf19-Dec-07 20:10
jason_mf19-Dec-07 20:10 
GeneralRe: Without Framwork can run .net applications Pin
N a v a n e e t h19-Dec-07 20:51
N a v a n e e t h19-Dec-07 20:51 
AnswerRe: Without Framwork can run .net applications Pin
TJoe20-Dec-07 2:40
TJoe20-Dec-07 2:40 
GeneralMDI with different processes Pin
Abdul Sami X19-Dec-07 20:04
Abdul Sami X19-Dec-07 20:04 
GeneralRe: MDI with different processes Pin
Paul Conrad24-Dec-07 19:41
professionalPaul Conrad24-Dec-07 19:41 
GeneralPublish app for multi user usage Pin
ZenyukIV19-Dec-07 19:26
ZenyukIV19-Dec-07 19:26 

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.