Click here to Skip to main content
15,915,508 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Generalsaving app size and desktop location Pin
shefali_sinha2-May-05 10:28
shefali_sinha2-May-05 10:28 
GeneralRe: saving app size and desktop location Pin
MoustafaS2-May-05 13:01
MoustafaS2-May-05 13:01 
GeneralDataAdapter.Update Within A Transaction Pin
Jim Matthews2-May-05 6:09
Jim Matthews2-May-05 6:09 
QuestionHow to change culture of the MonthCalendar control? Pin
iliyang2-May-05 4:59
iliyang2-May-05 4:59 
GeneralUpdate datagrid Pin
harwanegg2-May-05 2:10
harwanegg2-May-05 2:10 
GeneralRe: Update datagrid Pin
ursus zeta4-May-05 9:44
ursus zeta4-May-05 9:44 
GeneralPocket PC Installation Problem Pin
Anonymous2-May-05 0:19
Anonymous2-May-05 0:19 
GeneralCreating rotated font in C# using logfont Pin
camelopardis1-May-05 8:28
camelopardis1-May-05 8:28 
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
MoustafaS2-May-05 2:05
MoustafaS2-May-05 2:05 
QuestionIs there a standard deviation function in .Net? Pin
nzmike30-Apr-05 21:14
nzmike30-Apr-05 21:14 
AnswerRe: Is there a standard deviation function in .Net? Pin
rwestgraham1-May-05 10:44
rwestgraham1-May-05 10:44 
GeneralRe: Is there a standard deviation function in .Net? Pin
nzmike1-May-05 13:23
nzmike1-May-05 13:23 
GeneralErrors trying to debug smart device application Pin
hammo29-Apr-05 19:22
hammo29-Apr-05 19:22 
GeneralRe: Errors trying to debug smart device application Pin
Dave Kreskowiak30-Apr-05 4:19
mveDave Kreskowiak30-Apr-05 4:19 
QuestionHow can I obtain 'Source' object in drag&drop event of the WindowsForms? Pin
Member 191344029-Apr-05 3:14
Member 191344029-Apr-05 3:14 
AnswerRe: How can I obtain 'Source' object in drag&drop event of the WindowsForms? Pin
Claudio Grazioli2-May-05 21:07
Claudio Grazioli2-May-05 21:07 
GeneralRe: How can I obtain 'Source' object in drag&drop event of the WindowsForms? Pin
Member 19134402-May-05 23:31
Member 19134402-May-05 23:31 
GeneralRe: How can I obtain 'Source' object in drag&drop event of the WindowsForms? Pin
Claudio Grazioli3-May-05 0:17
Claudio Grazioli3-May-05 0:17 
Generalcoloring by using richTextBox Pin
NOTEPAK28-Apr-05 15:33
NOTEPAK28-Apr-05 15:33 
GeneralRe: coloring by using richTextBox [EDITED] Pin
Dave Kreskowiak29-Apr-05 13:31
mveDave Kreskowiak29-Apr-05 13:31 
Generalzip filter to use with compact framework and web services Pin
eng_torres28-Apr-05 4:09
eng_torres28-Apr-05 4:09 
Generalinstalling sqlserver by merge module Pin
sianatia27-Apr-05 19:13
sianatia27-Apr-05 19:13 
GeneralRe: installing sqlserver by merge module Pin
rwestgraham1-May-05 11:35
rwestgraham1-May-05 11:35 
GeneralRe: installing sqlserver by merge module Pin
sianatia1-May-05 18:39
sianatia1-May-05 18:39 
GeneralRe: installing sqlserver by merge module Pin
rwestgraham2-May-05 13:41
rwestgraham2-May-05 13:41 

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.