Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: help for god sake ~WebServices~ Pin
tawammar2-May-05 0:36
tawammar2-May-05 0:36 
GeneralRe: help for god sake ~WebServices~ Pin
Dave Kreskowiak2-May-05 0:54
mveDave Kreskowiak2-May-05 0:54 
GeneralC#, ActiveX and Borland Builder Pin
_eulogy_1-May-05 12:23
_eulogy_1-May-05 12:23 
Generalcontrol browser from app Pin
fortyonejb1-May-05 10:15
fortyonejb1-May-05 10:15 
GeneralRe: control browser from app Pin
Dan_P1-May-05 15:54
Dan_P1-May-05 15:54 
GeneralUri Class issue-isFile property Pin
Adnan Siddiqi1-May-05 9:57
Adnan Siddiqi1-May-05 9:57 
GeneralRe: Uri Class issue-isFile property Pin
Adnan Siddiqi1-May-05 10:14
Adnan Siddiqi1-May-05 10:14 
GeneralCreating rotated font in C# using logfont Pin
camelopardis1-May-05 8:24
camelopardis1-May-05 8:24 
Hello Developers,
I want to create a rotated font, and I use the following code to achieve this, like in this sample (http://winfx.msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_fxsamples/html/7c8b073b-5889-45e7-9a99-ebee39fe3b79.asp[^]), but using 1.1 framework.

Font CreateRotatedFont(int angle, Graphics g)
{
LOGFONT lf = new LOGFONT();

// scale a 12 point font for current screen DPI
lf.Height = (int)(-16f * g.DpiY / 96);
lf.Width = 0;

// rotation angle in tenths of degrees
lf.Escapement = angle * 10;

// Orientation == Escapement for mobile device OS
lf.Orientation = lf.Escapement;
lf.Weight = 0;
lf.Italic = 0;
lf.Underline = 0;
lf.StrikeOut = 0;
lf.CharSet = 0; //LogFontCharSet.Default;
lf.OutPrecision = 0;//LogFontPrecision.Default;
lf.ClipPrecision = 0;//LogFontClipPrecision.Default;
lf.Quality = 5;//LogFontQuality.ClearType;
lf.PitchAndFamily = 0;//LogFontPitchAndFamily.Default;
lf.FaceName = "Tahoma";

return System.Drawing.Font.FromLogFont(lf);
}

Am I doing something wrong in this code, or maybe someone did similar code once?
Thank you!
GeneralRe: Creating rotated font in C# using logfont Pin
Luis Alonso Ramos1-May-05 9:30
Luis Alonso Ramos1-May-05 9:30 
GeneralRe: Creating rotated font in C# using logfont Pin
camelopardis1-May-05 9:39
camelopardis1-May-05 9:39 
GeneralCustom control inherited from Label - drawing question Pin
Anonymous1-May-05 7:37
Anonymous1-May-05 7:37 
GeneralRe: Custom control inherited from Label - drawing question Pin
Dan_P1-May-05 15:49
Dan_P1-May-05 15:49 
GeneralAccessing c# ActiveX Controls from unmanaged C++ Pin
_eulogy_1-May-05 5:43
_eulogy_1-May-05 5:43 
GeneralRe: Accessing c# ActiveX Controls from unmanaged C++ Pin
Judah Gabriel Himango1-May-05 9:45
sponsorJudah Gabriel Himango1-May-05 9:45 
GeneralRe: Accessing c# ActiveX Controls from unmanaged C++ Pin
Anonymous1-May-05 10:34
Anonymous1-May-05 10:34 
GeneralRe: Accessing c# ActiveX Controls from unmanaged C++ Pin
Judah Gabriel Himango1-May-05 17:21
sponsorJudah Gabriel Himango1-May-05 17:21 
GeneralI want to generate random numbers Pin
Mohammed Aijaz Mohiuddin1-May-05 4:25
Mohammed Aijaz Mohiuddin1-May-05 4:25 
GeneralRe: I want to generate random numbers Pin
Colin Angus Mackay1-May-05 4:27
Colin Angus Mackay1-May-05 4:27 
GeneralRe: I want to generate random numbers Pin
eggie51-May-05 5:09
eggie51-May-05 5:09 
GeneralRichTextBox Question Pin
QzRz1-May-05 3:21
QzRz1-May-05 3:21 
GeneralRe: RichTextBox Question Pin
Judah Gabriel Himango1-May-05 9:47
sponsorJudah Gabriel Himango1-May-05 9:47 
GeneralSend info about to press button Pin
Pelada_Girl30-Apr-05 14:52
Pelada_Girl30-Apr-05 14:52 
GeneralRe: Send info about to press button Pin
Luis Alonso Ramos30-Apr-05 15:06
Luis Alonso Ramos30-Apr-05 15:06 
GeneralRe: Send info about to press button Pin
Pelada_Girl30-Apr-05 15:19
Pelada_Girl30-Apr-05 15:19 
GeneralRe: Send info about to press button Pin
Luis Alonso Ramos30-Apr-05 15:25
Luis Alonso Ramos30-Apr-05 15:25 

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.