Click here to Skip to main content
15,895,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: Events - a beginner asks for help Pin
Meysam Mahfouzi14-Mar-04 4:26
Meysam Mahfouzi14-Mar-04 4:26 
GeneralRequired header <conio.h> of C-library Pin
oOomen13-Mar-04 23:47
oOomen13-Mar-04 23:47 
GeneralRe: Required header <conio.h> of C-library Pin
oOomen14-Mar-04 1:50
oOomen14-Mar-04 1:50 
Generalfrom a datagrid in one to a textbox in another form Pin
ASGill13-Mar-04 21:49
ASGill13-Mar-04 21:49 
GeneralRe: from a datagrid in one to a textbox in another form Pin
Mazdak14-Mar-04 4:45
Mazdak14-Mar-04 4:45 
GeneralRe: from a datagrid in one to a textbox in another form Pin
ASGill14-Mar-04 13:44
ASGill14-Mar-04 13:44 
GeneralRe: from a datagrid in one to a textbox in another form Pin
Mazdak14-Mar-04 20:23
Mazdak14-Mar-04 20:23 
GeneralConvert Char[] to string Pin
dabuskol13-Mar-04 20:57
dabuskol13-Mar-04 20:57 
Hi Guys,

I'm trying to convert a char[] data recieved from my socket connection into string. please help.
This is what i'm doing

iRx = theSockId.thisSocket.EndReceive (asyn);
char[] chars = new char[iRx + 1];
System.Text.Decoder d = System.Text.Encoding.UTF8.GetDecoder();
int charLen = d.GetChars(theSockId.dataBuffer, 0, iRx, chars, 0);
System.String szData = new System.String(chars);

if I concatinate the szData to a string variable it gives me a space in between words while if I concatinate it to a control.text it was ok .

Is there a way to solve this.

/Dabuskol .. pls..
GeneralRe: Convert Char[] to string Pin
Heath Stewart15-Mar-04 3:20
protectorHeath Stewart15-Mar-04 3:20 
GeneralInsert Messages into game chat from c# app Pin
lordjpg13-Mar-04 20:08
lordjpg13-Mar-04 20:08 
GeneralRe: Insert Messages into game chat from c# app Pin
Mazdak14-Mar-04 5:03
Mazdak14-Mar-04 5:03 
GeneralRe: Insert Messages into game chat from c# app Pin
Heath Stewart15-Mar-04 3:37
protectorHeath Stewart15-Mar-04 3:37 
GeneralPrinting a web page Pin
draco_iii13-Mar-04 14:12
draco_iii13-Mar-04 14:12 
GeneralRe: Printing a web page Pin
Heath Stewart15-Mar-04 3:30
protectorHeath Stewart15-Mar-04 3:30 
GeneralRe: Printing a web page Pin
Michael Flanakin17-Mar-04 19:00
Michael Flanakin17-Mar-04 19:00 
GeneralRendering successive blanks in HTML Pin
Gary Hyslop at home13-Mar-04 8:31
Gary Hyslop at home13-Mar-04 8:31 
GeneralRe: Rendering successive blanks in HTML Pin
Dave Kreskowiak14-Mar-04 12:26
mveDave Kreskowiak14-Mar-04 12:26 
GeneralRe: Rendering successive blanks in HTML Pin
Heath Stewart15-Mar-04 6:48
protectorHeath Stewart15-Mar-04 6:48 
GeneralFocus Problems in C# Pin
ptrainor13-Mar-04 7:56
ptrainor13-Mar-04 7:56 
GeneralRe: Focus Problems in C# Pin
ptrainor14-Mar-04 6:43
ptrainor14-Mar-04 6:43 
GeneralChanging Form Client Region Pin
forak13-Mar-04 6:58
forak13-Mar-04 6:58 
GeneralRe: Changing Form Client Region Pin
Mathew Hall13-Mar-04 16:45
Mathew Hall13-Mar-04 16:45 
GeneralDirectX Bitmaps Pin
Flecko13-Mar-04 5:02
Flecko13-Mar-04 5:02 
GeneralRe: DirectX Bitmaps Pin
Hiro_Antagonist13-Mar-04 10:33
Hiro_Antagonist13-Mar-04 10:33 
GeneralRe: DirectX Bitmaps Pin
Flecko13-Mar-04 11:32
Flecko13-Mar-04 11:32 

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.