Click here to Skip to main content
15,921,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: Capturing the Print Event in C# Pin
Not Active20-Dec-07 6:29
mentorNot Active20-Dec-07 6:29 
GeneralBest way to read XML Pin
netJP12L20-Dec-07 5:41
netJP12L20-Dec-07 5:41 
GeneralRe: Best way to read XML Pin
J$20-Dec-07 5:54
J$20-Dec-07 5:54 
GeneralRe: Best way to read XML Pin
J4amieC20-Dec-07 6:00
J4amieC20-Dec-07 6:00 
GeneralRe: Best way to read XML Pin
Ed.Poore20-Dec-07 12:28
Ed.Poore20-Dec-07 12:28 
GeneralRe: Best way to read XML Pin
DaveyM6923-Dec-07 22:32
professionalDaveyM6923-Dec-07 22:32 
GeneralDatagridview update problem Pin
NewToAspDotNet20-Dec-07 5:31
NewToAspDotNet20-Dec-07 5:31 
GeneralRe: Datagridview update problem Pin
DotNetXenon20-Dec-07 6:17
DotNetXenon20-Dec-07 6:17 
GeneralRe: Datagridview update problem Pin
NewToAspDotNet20-Dec-07 6:22
NewToAspDotNet20-Dec-07 6:22 
GeneralMS ACCESS / Web + Desktop Application Pin
s3rro20-Dec-07 5:03
s3rro20-Dec-07 5:03 
GeneralRe: MS ACCESS / Web + Desktop Application Pin
J$20-Dec-07 5:40
J$20-Dec-07 5:40 
GeneralActiveDirectory - getting a lit of users in a group Pin
RugbyLeague20-Dec-07 5:01
RugbyLeague20-Dec-07 5:01 
GeneralRe: ActiveDirectory - getting a lit of users in a group Pin
Giorgi Dalakishvili20-Dec-07 5:14
mentorGiorgi Dalakishvili20-Dec-07 5:14 
GeneralRe: ActiveDirectory - getting a lit of users in a group Pin
RugbyLeague20-Dec-07 5:26
RugbyLeague20-Dec-07 5:26 
GeneralRe: ActiveDirectory - getting a lit of users in a group Pin
RugbyLeague20-Dec-07 5:36
RugbyLeague20-Dec-07 5:36 
QuestionString data into byte array without hex conversion Pin
worked on mine20-Dec-07 3:55
worked on mine20-Dec-07 3:55 
GeneralRe: String data into byte array without hex conversion Pin
DannyAdler20-Dec-07 4:53
DannyAdler20-Dec-07 4:53 
Hi there,

Maybe this will put you in the right track:

string StringToConvert = "abc";<br />
//This call will return a byte array with the numeric values of the chars<br />
byte[] bytes = StringToByteArray(StringToConvert);<br />
<br />
private byte[] StringToByteArray(string str)<br />
{<br />
    char[] chars = str.ToCharArray();<br />
    byte[] bytes = Array.ConvertAll<char, byte="">(chars, new Converter<char, byte="">(CharToByte));<br />
    return bytes;<br />
}<br />
private byte CharToByte(char ch) { return (byte)ch; }</char,></char,>



Hope it helps.

Danny
GeneralRe: String data into byte array without hex conversion Pin
worked on mine20-Dec-07 5:32
worked on mine20-Dec-07 5:32 
GeneralRe: String data into byte array without hex conversion Pin
DannyAdler20-Dec-07 22:29
DannyAdler20-Dec-07 22:29 
GeneralRe: String data into byte array without hex conversion Pin
DannyAdler20-Dec-07 22:34
DannyAdler20-Dec-07 22:34 
GeneralRe: String data into byte array without hex conversion Pin
J4amieC20-Dec-07 5:58
J4amieC20-Dec-07 5:58 
GeneralExcel Object Pin
gauthee20-Dec-07 3:36
gauthee20-Dec-07 3:36 
GeneralRe: Excel Object Pin
Not Active20-Dec-07 3:42
mentorNot Active20-Dec-07 3:42 
GeneralDLL Pin
anupamwb20-Dec-07 2:55
anupamwb20-Dec-07 2:55 
GeneralRe: DLL Pin
J4amieC20-Dec-07 3:01
J4amieC20-Dec-07 3:01 

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.