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

C#

 
GeneralRe: Add thousand separator and keep decimal precision Pin
keith maddox4-May-05 10:00
keith maddox4-May-05 10:00 
GeneralRe: Add thousand separator and keep decimal precision Pin
MBGeorge4-May-05 19:56
MBGeorge4-May-05 19:56 
GeneralSyncronization Pin
vchedalla4-May-05 1:26
vchedalla4-May-05 1:26 
GeneralRe: Syncronization Pin
MoustafaS4-May-05 3:10
MoustafaS4-May-05 3:10 
GeneralRe: Syncronization Pin
S. Senthil Kumar4-May-05 4:30
S. Senthil Kumar4-May-05 4:30 
QuestionHow to set diffrent words in a label with diffrent fonts Pin
Roggey4-May-05 0:12
Roggey4-May-05 0:12 
AnswerRe: How to set diffrent words in a label with diffrent fonts Pin
Dave Kreskowiak4-May-05 4:14
mveDave Kreskowiak4-May-05 4:14 
AnswerRe: How to set diffrent words in a label with diffrent fonts Pin
keith maddox4-May-05 10:05
keith maddox4-May-05 10:05 
You can do just what you want in your paint method but you'll need to get a little more involved that you might want to. Basically what you need to do is paint the text of your control yourself. You'll notice that DrawString has a parameter for the font. Just use that and draw the string in sections, one for each font you are using. This also means that you'll need to use MeasureString for each piece as you draw it so you can get the next section to align to the proper place following the preceeding piece.

Hope that makes sense.


GeneralAdd-in Solutions from Visual Studio .NET 2003 to 2005 Pin
rathishps3-May-05 23:28
rathishps3-May-05 23:28 
GeneralRe: Add-in Solutions from Visual Studio .NET 2003 to 2005 Pin
Judah Gabriel Himango4-May-05 4:35
sponsorJudah Gabriel Himango4-May-05 4:35 
GeneralRe: Add-in Solutions from Visual Studio .NET 2003 to 2005 Pin
rathishps6-May-05 2:17
rathishps6-May-05 2:17 
Generalchecking directory or file permission of network folders Pin
Xiao_M3-May-05 22:48
Xiao_M3-May-05 22:48 
GeneralCryptography Pin
Yaakov Davis3-May-05 22:36
Yaakov Davis3-May-05 22:36 
GeneralRe: Cryptography Pin
Trance Junkie4-May-05 4:13
Trance Junkie4-May-05 4:13 
GeneralRe: Cryptography Pin
Yaakov Davis4-May-05 4:46
Yaakov Davis4-May-05 4:46 
GeneralRe: Cryptography Pin
Enishi4-May-05 4:57
Enishi4-May-05 4:57 
GeneralRe: Cryptography Pin
Yaakov Davis4-May-05 7:44
Yaakov Davis4-May-05 7:44 
GeneralRe: Cryptography Pin
Enishi5-May-05 5:59
Enishi5-May-05 5:59 
GeneralsDataGrid Pin
Illegal Operation3-May-05 20:25
Illegal Operation3-May-05 20:25 
GeneralRe: sDataGrid Pin
V.3-May-05 23:47
professionalV.3-May-05 23:47 
GeneralRe: sDataGrid Pin
Illegal Operation4-May-05 19:50
Illegal Operation4-May-05 19:50 
GeneralRe: sDataGrid Pin
V.4-May-05 23:01
professionalV.4-May-05 23:01 
QuestionHow to add user Controls for Forms? Pin
pubududilena3-May-05 20:07
pubududilena3-May-05 20:07 
AnswerRe: How to add user Controls for Forms? Pin
Joshua Nussbaum3-May-05 20:14
Joshua Nussbaum3-May-05 20:14 
AnswerRe: How to add user Controls for Forms? Pin
spif20013-May-05 20:17
spif20013-May-05 20:17 

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.