Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saving project to file Pin
sinosoidal3-Apr-07 23:37
sinosoidal3-Apr-07 23:37 
QuestionImplementing drag and drop funcionality Pin
sinosoidal3-Apr-07 6:56
sinosoidal3-Apr-07 6:56 
AnswerRe: Implementing drag and drop funcionality Pin
Douglas Troy3-Apr-07 7:22
Douglas Troy3-Apr-07 7:22 
GeneralRe: Implementing drag and drop funcionality Pin
sinosoidal3-Apr-07 23:41
sinosoidal3-Apr-07 23:41 
Questionhow to convert unicode to int in C#? Pin
OmarLodhi3-Apr-07 6:55
OmarLodhi3-Apr-07 6:55 
AnswerRe: how to convert unicode to int in C#? Pin
Vikram A Punathambekar3-Apr-07 7:07
Vikram A Punathambekar3-Apr-07 7:07 
AnswerRe: how to convert unicode to int in C#? Pin
Wayne Phipps3-Apr-07 9:32
Wayne Phipps3-Apr-07 9:32 
GeneralRe: how to convert unicode to int in C#? Pin
OmarLodhi3-Apr-07 15:34
OmarLodhi3-Apr-07 15:34 
Hi,
i have to convert a unicode string to its hex equilent. i have converted this from a VB6 code that uses AscW() method to convert unicode to a integer value and then to Hex value.

Here is code
String strSrc="جمل هندسة في الدنيا أن تبني جسرا من الأمل على بحر من اليأس..";
strResult = "";
for (int i = 0; i < strSrc.Length; i++)
{
try
{
//tried this one get exception
//nVal = Int32.Parse(strSrc.Substring(i, 4));
//tried also statement below also get exception
nVal = Convert.ToInt32(strSrc.Substring(i, 4));
strHex = Convert.ToString(nVal, 16);
strResult += strHex;
}
catch (FormatException e)
{
;
}
}

Exceptoin error string is "Input was not in correct format"

Thanks and Regards,
Omar
GeneralRe: how to convert unicode to int in C#? Pin
Vikram A Punathambekar3-Apr-07 18:23
Vikram A Punathambekar3-Apr-07 18:23 
GeneralRe: how to convert unicode to int in C#? Pin
OmarLodhi3-Apr-07 21:26
OmarLodhi3-Apr-07 21:26 
Questionhow to use webbrowserControl Pin
pashitech3-Apr-07 6:22
pashitech3-Apr-07 6:22 
AnswerRe: how to use webbrowserControl Pin
Douglas Troy3-Apr-07 6:30
Douglas Troy3-Apr-07 6:30 
QuestionJust problems... Pin
lost in transition 3-Apr-07 5:39
lost in transition 3-Apr-07 5:39 
AnswerRe: Just problems... Pin
Vikram A Punathambekar3-Apr-07 7:09
Vikram A Punathambekar3-Apr-07 7:09 
GeneralRe: Just problems... Pin
lost in transition 3-Apr-07 8:01
lost in transition 3-Apr-07 8:01 
QuestionXml Confusion Pin
Mark F.3-Apr-07 5:24
Mark F.3-Apr-07 5:24 
AnswerRe: Xml Confusion Pin
kubben3-Apr-07 6:03
kubben3-Apr-07 6:03 
QuestionHelp with automated html to image capture Pin
justlee73-Apr-07 5:10
justlee73-Apr-07 5:10 
AnswerRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 5:45
Douglas Troy3-Apr-07 5:45 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 5:57
justlee73-Apr-07 5:57 
GeneralRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 6:15
Douglas Troy3-Apr-07 6:15 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 6:48
justlee73-Apr-07 6:48 
GeneralRe: Help with automated html to image capture [modified] Pin
Douglas Troy3-Apr-07 7:09
Douglas Troy3-Apr-07 7:09 
GeneralRe: Help with automated html to image capture Pin
justlee73-Apr-07 10:20
justlee73-Apr-07 10:20 
GeneralRe: Help with automated html to image capture Pin
Douglas Troy3-Apr-07 10:41
Douglas Troy3-Apr-07 10:41 

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.