Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting numbers and run some math equations in C# Pin
Guffa30-Jul-07 1:58
Guffa30-Jul-07 1:58 
GeneralRe: Converting numbers and run some math equations in C# Pin
guyav9930-Jul-07 2:04
guyav9930-Jul-07 2:04 
AnswerRe: Converting numbers and run some math equations in C# Pin
Guffa30-Jul-07 2:14
Guffa30-Jul-07 2:14 
GeneralRe: Converting numbers and run some math equations in C# Pin
guyav9930-Jul-07 2:19
guyav9930-Jul-07 2:19 
AnswerRe: Converting numbers and run some math equations in C# Pin
Bekjong30-Jul-07 1:51
Bekjong30-Jul-07 1:51 
GeneralRe: Converting numbers and run some math equations in C# Pin
guyav9930-Jul-07 1:55
guyav9930-Jul-07 1:55 
GeneralRe: Converting numbers and run some math equations in C# Pin
Bekjong30-Jul-07 1:58
Bekjong30-Jul-07 1:58 
AnswerRe: Converting numbers and run some math equations in C# Pin
Martin#30-Jul-07 2:13
Martin#30-Jul-07 2:13 
Hello,

Here an example for Hex and int:
public string Int64ToHex(System.Int64 number)
{
    return String.Format("{0:X}", number);
}
 
public double HexToInt64(string hexString)
{
    Int64 actint=0;
    if(hexString!=null && !hexString.Equals(string.Empty))
    {
	try
	{
            actint=System.Int64.Parse(hexString, System.Globalization.NumberStyles.HexNumber, CultureInfo.CurrentCulture);
	}
        catch
	{
	}
    }
    return actint;
}


I'm using .Net 1.1, so there is no Int64.TryParse, and with double.TryParse it doesn't work.

All the best,

Martin

GeneralRe: Converting numbers and run some math equations in C# Pin
guyav9930-Jul-07 2:16
guyav9930-Jul-07 2:16 
AnswerRe: Converting numbers and run some math equations in C# Pin
V.30-Jul-07 2:47
professionalV.30-Jul-07 2:47 
QuestionLocalization tool Pin
koger30-Jul-07 1:36
koger30-Jul-07 1:36 
Questionfinding all the textbox controls on window forms Pin
kalyan_241630-Jul-07 1:08
kalyan_241630-Jul-07 1:08 
AnswerRe: finding all the textbox controls on window forms [modified] Pin
Martin#30-Jul-07 1:11
Martin#30-Jul-07 1:11 
GeneralRe: finding all the textbox controls on window forms [modified] Pin
J4amieC30-Jul-07 4:35
J4amieC30-Jul-07 4:35 
GeneralRe: finding all the textbox controls on window forms Pin
Martin#30-Jul-07 4:43
Martin#30-Jul-07 4:43 
GeneralRe: finding all the textbox controls on window forms Pin
J4amieC30-Jul-07 5:25
J4amieC30-Jul-07 5:25 
AnswerRe: finding all the textbox controls on window forms Pin
J4amieC30-Jul-07 1:14
J4amieC30-Jul-07 1:14 
AnswerRe: finding all the textbox controls on window forms Pin
Tamimi - Code30-Jul-07 1:14
Tamimi - Code30-Jul-07 1:14 
GeneralRe: finding all the textbox controls on window forms Pin
Luc Pattyn30-Jul-07 1:17
sitebuilderLuc Pattyn30-Jul-07 1:17 
GeneralRe: finding all the textbox controls on window forms Pin
Tamimi - Code30-Jul-07 1:24
Tamimi - Code30-Jul-07 1:24 
GeneralRe: finding all the textbox controls on window forms Pin
Bekjong30-Jul-07 1:33
Bekjong30-Jul-07 1:33 
GeneralRe: finding all the textbox controls on window forms Pin
Tamimi - Code30-Jul-07 1:41
Tamimi - Code30-Jul-07 1:41 
QuestionDelete a record from the dataset Pin
chandragupta.k30-Jul-07 0:57
chandragupta.k30-Jul-07 0:57 
AnswerRe: Delete a record from the dataset Pin
Vasudevan Deepak Kumar30-Jul-07 1:00
Vasudevan Deepak Kumar30-Jul-07 1:00 
QuestionRe: Delete a record from the dataset Pin
chandragupta.k30-Jul-07 1:11
chandragupta.k30-Jul-07 1:11 

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.