get a button font api

Posted by user545142 on Stack Overflow See other posts from Stack Overflow or by user545142
Published on 2010-12-30T20:46:08Z Indexed on 2010/12/30 20:53 UTC
Read the original article Hit count: 359

Filed under:
|

hi first sorry for my English i try to get a word under mouse

now my problem how to get the font of button

i try to use

 IntPtr dc=    GetDC(button1.Handle);
 IntPtr last_font = SelectObject(dc, Font.ToHfont());
         Font fon = Font.FromHdc(dc);

but it gave me the font of the form

and some time gave me error Only TrueType fonts are supported. This is not a TrueType font

any body help me

© Stack Overflow or respective owner

Related posts about c#

Related posts about api