Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2007, 03:50 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Integer to hex: String.Format("{0:X2}", intValue)

/- Sam Judson : Wrox Technical Editor -/
 
Old October 29th, 2007, 08:11 AM
Authorized User
 
Join Date: Oct 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saidan Send a message via Yahoo to saidan
Default

thanks;

what about the opposite, from hexadecimal to decimal?

i know my questions are too much, but what to do..?

:)

================================================
toward a success civelization;
 
Old October 29th, 2007, 08:16 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

strig hex = int.Parse(hexString, System.Globalization.NumberStyles.HexNumber, null);


/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
change only the first item in array's back color i remya1000 .NET Framework 1.x 1 November 5th, 2007 10:43 PM
back color of cell of datagrid [email protected] VB.NET 1 November 18th, 2006 03:28 AM
DataGrid row back color related to datalist id's jgd ASP.NET 2.0 Basics 0 May 4th, 2006 09:21 AM
How to change the back color of toolbat allenfei BOOK: Professional C#, 2nd and 3rd Editions 3 August 15th, 2005 02:37 AM
Color Form mivvb VB How-To 8 June 20th, 2005 10:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.