Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: Description pane in a property grid Pin
Anonymous2-Jun-03 0:12
Anonymous2-Jun-03 0:12 
GeneralRe: Description pane in a property grid Pin
nlin5-Jun-03 3:17
nlin5-Jun-03 3:17 
GeneralAutoscrolling Pin
parag12329-May-03 21:21
parag12329-May-03 21:21 
GeneralRe: Autoscrolling Pin
John Fisher30-May-03 4:02
John Fisher30-May-03 4:02 
GeneralRe: Autoscrolling Pin
Mohammad Siahatgar2-Jun-03 6:18
Mohammad Siahatgar2-Jun-03 6:18 
GeneralDetecting Dial-Up connection and Current Dial-Up Number Pin
yarns29-May-03 21:20
yarns29-May-03 21:20 
GeneralHex conversion help Pin
Weiye Chen29-May-03 21:01
Weiye Chen29-May-03 21:01 
GeneralRe: Hex conversion help Pin
KingTermite29-May-03 23:20
KingTermite29-May-03 23:20 
From help (I did something similar to this) :
Console.Write("{0:X}", 250);


I'm not sure if you can do that directly to a string or if you need to use a StringBuffer class like I did.

This is some code how I retreived color codes in individual colors (in bytes) and converted them to hex strings.
<br />
StringBuilder oBuffer = new StringBuilder();<br />
            string strColorCode = "";<br />
            byte byRed = 0;<br />
            byte byGreen = 0;<br />
            byte byBlue = 0;<br />
<br />
<br />
            // Selected color can now be retreived by RGB components<br />
            byRed = oColor.R;<br />
            byGreen = oColor.G;<br />
            byBlue = oColor.B;<br />
<br />
            // Format string to get hex number for color<br />
            strColorCode = "{0:x2}{1:x2}{2:x2}";<br />
            oBuffer.AppendFormat(strColorCode, byRed, byGreen, byBlue);<br />
<br />
            return oBuffer.ToString();<br />



There are only 10 types of people in this world....those that understand binary, and those that do not.
GeneralRe: Hex conversion help Pin
Weiye Chen29-May-03 23:49
Weiye Chen29-May-03 23:49 
GeneralRe: Hex conversion help Pin
gek_at30-May-03 6:57
gek_at30-May-03 6:57 
GeneralRe: Hex conversion help Pin
Weiye Chen30-May-03 17:39
Weiye Chen30-May-03 17:39 
Generalunions Pin
Anonymous29-May-03 18:56
Anonymous29-May-03 18:56 
GeneralRe: unions Pin
Nick Parker29-May-03 19:08
protectorNick Parker29-May-03 19:08 
GeneralRe: unions Pin
grv57529-May-03 20:54
grv57529-May-03 20:54 
GeneralRe: unions Pin
Nathan Blomquist30-May-03 4:01
Nathan Blomquist30-May-03 4:01 
GeneralRe: unions Pin
Nick Parker30-May-03 4:37
protectorNick Parker30-May-03 4:37 
GeneralRe: unions Pin
grv57530-May-03 16:23
grv57530-May-03 16:23 
GeneralRe: unions Pin
James T. Johnson31-May-03 19:02
James T. Johnson31-May-03 19:02 
GeneralOpening and converting targa (TGA) images.. Pin
Yazilliclick29-May-03 14:37
Yazilliclick29-May-03 14:37 
GeneralNeed a Report to Open on Top of the Calling Page Pin
dturton29-May-03 11:45
dturton29-May-03 11:45 
QuestionIs it possible to add a form to a panel? Pin
zuhx29-May-03 11:41
zuhx29-May-03 11:41 
AnswerRe: Is it possible to add a form to a panel? Pin
shaunAustin29-May-03 22:07
shaunAustin29-May-03 22:07 
GeneralRe: Is it possible to add a form to a panel? Pin
zuhx30-May-03 8:10
zuhx30-May-03 8:10 
AnswerRe: Is it possible to add a form to a panel? Pin
James T. Johnson31-May-03 19:07
James T. Johnson31-May-03 19:07 
GeneralRe: Is it possible to add a form to a panel? Pin
zuhx3-Jun-03 9:14
zuhx3-Jun-03 9:14 

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.