Click here to Skip to main content
16,010,488 members
Home / Discussions / C#
   

C#

 
GeneralRe: performance question Pin
rchiav15-Feb-02 15:49
rchiav15-Feb-02 15:49 
GeneralFont style Pin
Mazdak15-Feb-02 5:45
Mazdak15-Feb-02 5:45 
GeneralRe: Font style Pin
Christopher Lord17-Feb-02 14:55
Christopher Lord17-Feb-02 14:55 
GeneralRe: Font style Pin
Mazdak17-Feb-02 19:22
Mazdak17-Feb-02 19:22 
GeneralRe: Font style Pin
Christopher Lord17-Feb-02 19:53
Christopher Lord17-Feb-02 19:53 
GeneralRe: Font style Pin
James T. Johnson18-Feb-02 0:51
James T. Johnson18-Feb-02 0:51 
GeneralRe: Font style Pin
Mazdak18-Feb-02 2:56
Mazdak18-Feb-02 2:56 
GeneralRe: Font style Pin
James T. Johnson18-Feb-02 10:12
James T. Johnson18-Feb-02 10:12 
Mazdak wrote:
Sorry James,Could you give an example?

Certainly Smile | :)
Font newFont = new Font(myLabel.Font, // base it off the old font
                        FontStyles.Bold | FontStyles.Italic // Make it bold and italic
                       );
myLabel.Font = newFont;


If you want to change more than the font style you'll have to extract all of the needed properties from your old font and pass them to the constructor to the Font class.

ms-help://MS.NETFrameworkSDK/cpref/html/frlrfsystemdrawingfontclassctortopic.htm

The url above is for the .NET documentation; putting you right at the constructor list; since there's way too many for me to want to type Smile | :)

James

Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972

GeneralRe: Font style Pin
Mazdak18-Feb-02 19:53
Mazdak18-Feb-02 19:53 
GeneralRe: Font style Pin
Mazdak18-Feb-02 23:19
Mazdak18-Feb-02 23:19 
GeneralRe: Font style Pin
James T. Johnson18-Feb-02 23:24
James T. Johnson18-Feb-02 23:24 
GeneralPopulating and Viewing Arrays Pin
Gavin_Mannion14-Feb-02 23:58
Gavin_Mannion14-Feb-02 23:58 
GeneralRe: Populating and Viewing Arrays Pin
Peter Stephens15-Feb-02 7:11
Peter Stephens15-Feb-02 7:11 
GeneralAxHost, but on C site... Pin
14-Feb-02 10:56
suss14-Feb-02 10:56 
GeneralRe: AxHost, but on C site... Pin
Peter Stephens14-Feb-02 11:37
Peter Stephens14-Feb-02 11:37 
GeneralRe: AxHost, but on C site... Pin
14-Feb-02 19:46
suss14-Feb-02 19:46 
Generaldrag & drop as in explorer Pin
kasturirawat14-Feb-02 6:38
kasturirawat14-Feb-02 6:38 
GeneralDetecting when a MdiList Child MenuItem is selected Pin
kyledunn14-Feb-02 5:32
kyledunn14-Feb-02 5:32 
GeneralRe: Detecting when a MdiList Child MenuItem is selected Pin
Torsten Mauz11-Mar-02 3:03
Torsten Mauz11-Mar-02 3:03 
GeneralOpening New Form Pin
Gavin_Mannion14-Feb-02 4:55
Gavin_Mannion14-Feb-02 4:55 
GeneralRe: Opening New Form Pin
14-Feb-02 7:33
suss14-Feb-02 7:33 
GeneralRe: Opening New Form Pin
Gavin_Mannion14-Feb-02 23:15
Gavin_Mannion14-Feb-02 23:15 
GeneralRe: Opening New Form Pin
Andres Manggini20-Feb-02 15:38
Andres Manggini20-Feb-02 15:38 
GeneralPorting MFC to UNIX Pin
14-Feb-02 0:32
suss14-Feb-02 0:32 
GeneralRe: Porting MFC to UNIX Pin
Christopher Lord17-Feb-02 14:57
Christopher Lord17-Feb-02 14:57 

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.