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

C#

 
AnswerRe: How to access from objects from other class Pin
Mairaaj Khan8-Nov-06 1:07
professionalMairaaj Khan8-Nov-06 1:07 
AnswerRe: How to access from objects from other class Pin
mohammadSoft8-Nov-06 1:38
mohammadSoft8-Nov-06 1:38 
Questionhow to use TableAdapter in VC# 2005 ? Pin
hdv2128-Nov-06 0:26
hdv2128-Nov-06 0:26 
AnswerRe: how to use TableAdapter in VC# 2005 ? Pin
quiteSmart8-Nov-06 1:02
quiteSmart8-Nov-06 1:02 
Questionhow to convert char[] to byte[] without loss of data Pin
Hemant kulkarni7-Nov-06 23:52
Hemant kulkarni7-Nov-06 23:52 
AnswerRe: how to convert char[] to byte[] without loss of data Pin
ThatsAlok8-Nov-06 0:01
ThatsAlok8-Nov-06 0:01 
AnswerRe: how to convert char[] to byte[] without loss of data Pin
stancrm8-Nov-06 0:35
stancrm8-Nov-06 0:35 
AnswerRe: how to convert char[] to byte[] without loss of data Pin
Guffa8-Nov-06 2:35
Guffa8-Nov-06 2:35 
That depends on how you want to convert it.

The char data type is a 16 bit unicode character. Unless you have restricted the characters to use only ASCII characters, each character can not be converted to a byte.

If you want to convert the string to it's encoded format, you can use the GetBytes method of the encoding you want to use. Example:

byte[] data = Encoding.UTF8.GetBytes(theChars);


---
b { font-weight: normal; }

GeneralIPaddress control Pin
ThatsAlok7-Nov-06 23:48
ThatsAlok7-Nov-06 23:48 
GeneralRe: IPaddress control Pin
Stefan Troschuetz8-Nov-06 0:31
Stefan Troschuetz8-Nov-06 0:31 
QuestionUNhandled Exception of Type System.NullReferenceException Pin
signimage7-Nov-06 23:14
signimage7-Nov-06 23:14 
AnswerRe: UNhandled Exception of Type System.NullReferenceException Pin
Colin Angus Mackay7-Nov-06 23:20
Colin Angus Mackay7-Nov-06 23:20 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
signimage7-Nov-06 23:31
signimage7-Nov-06 23:31 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
Colin Angus Mackay8-Nov-06 0:00
Colin Angus Mackay8-Nov-06 0:00 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
signimage8-Nov-06 0:11
signimage8-Nov-06 0:11 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
signimage8-Nov-06 0:02
signimage8-Nov-06 0:02 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
Colin Angus Mackay8-Nov-06 0:06
Colin Angus Mackay8-Nov-06 0:06 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
signimage8-Nov-06 0:14
signimage8-Nov-06 0:14 
GeneralRe: UNhandled Exception of Type System.NullReferenceException Pin
Colin Angus Mackay8-Nov-06 0:37
Colin Angus Mackay8-Nov-06 0:37 
QuestionHow to Display required text in richtextbox... Pin
IamHuM7-Nov-06 23:04
IamHuM7-Nov-06 23:04 
AnswerRe: How to Display required text in richtextbox... Pin
_mubashir7-Nov-06 23:41
_mubashir7-Nov-06 23:41 
AnswerRe: How to Display required text in richtextbox... Pin
saqib827-Nov-06 23:55
saqib827-Nov-06 23:55 
GeneralRe: How to Display required text in richtextbox... Pin
IamHuM8-Nov-06 0:04
IamHuM8-Nov-06 0:04 
QuestionHow to make customer event Pin
Murtuza Husain Miyan Patel7-Nov-06 20:24
professionalMurtuza Husain Miyan Patel7-Nov-06 20:24 
AnswerRe: How to make customer event Pin
Christian Graus7-Nov-06 20:39
protectorChristian Graus7-Nov-06 20:39 

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.