Click here to Skip to main content
16,008,750 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to add user Controls for Forms? Pin
pubududilena4-May-05 0:24
pubududilena4-May-05 0:24 
GeneralExecuting 2 Service classes in a single windows service Pin
rameedev3-May-05 19:44
rameedev3-May-05 19:44 
GeneralPreserving details of trial peiod in C# Pin
Anonymous3-May-05 19:36
Anonymous3-May-05 19:36 
GeneralRe: Preserving details of trial peiod in C# Pin
Christian Graus3-May-05 19:44
protectorChristian Graus3-May-05 19:44 
GeneralRe: Preserving details of trial peiod in C# Pin
Anonymous3-May-05 20:42
Anonymous3-May-05 20:42 
GeneralRich text box Pin
StephenMcAllister3-May-05 16:41
StephenMcAllister3-May-05 16:41 
GeneralRe: Rich text box Pin
Ali Iqbal Khan3-May-05 18:46
Ali Iqbal Khan3-May-05 18:46 

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.