Click here to Skip to main content
15,917,568 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionProgressBar questions... Pin
jose.angel.calleja24-Apr-08 6:30
jose.angel.calleja24-Apr-08 6:30 
GeneralRe: ProgressBar questions... Pin
Kschuler24-Apr-08 7:41
Kschuler24-Apr-08 7:41 
GeneralInstall tool Pin
Heracles Choe24-Apr-08 4:23
Heracles Choe24-Apr-08 4:23 
GeneralRe: Install tool Pin
Ed.Poore24-Apr-08 8:47
Ed.Poore24-Apr-08 8:47 
QuestionHow to access first created form's control properties from another form? Pin
Sinan Akyuz24-Apr-08 1:49
Sinan Akyuz24-Apr-08 1:49 
GeneralRe: How to access first created form's control properties from another form? Pin
Kschuler24-Apr-08 7:54
Kschuler24-Apr-08 7:54 
AnswerRe: How to access first created form's control properties from another form? Pin
tamour24-Apr-08 10:55
tamour24-Apr-08 10:55 
QuestionText alignment problem [modified] Pin
storm202124-Apr-08 0:33
storm202124-Apr-08 0:33 
Hi,

I'm experiencing a problem when printing text using Graphics.DrawString(). The horizontal character spacing appears inconsistent for each line of text, depending on the length of the string printed. It's pretty hard to explain what exactly is happening, but for instance, when printing:

Info::Defining 'FORCEBUILD' as 'False'
Info::Defining 'BUILDGLOBALDATA' as 'True'
Info::Defining 'BUILDTRACKINSTANCES' as 'False'
Info::Defining 'BUILDTRACKDYNAMICOBJECTS' as 'False'
Info::Defining 'BUILDTRACKSTATICOBJECTS' as 'False'
Info::Defining 'BUILDPAKFILES' as 'True'
Info::Defining 'BUILDGUIFILES' as 'False'
Info::Defining 'BUILDAICHARACTERSKINS' as 'False'
Info::Defining 'BUILDDRIVERCHARACTERSKINS' as 'False'

The first column of ' characters after Defining are aligned differently horizontally.

This is using the controls standard font MS San Serif 8.25, with all the system default text rendering settings.

I've tried changing the TextRenderingHint in the Graphics object, and found that TextRenderingHint.SingleBitPerPixel gives a consistent alignment, but looks awful, where the default seems to be TextRenderingHint.SingleBitPerPixelGridFit, (although TextRenderingHint.AntiAliasGridFit looks the same to me), giving the mis-aligned text.

[EDIT: In addition to this issue, when printing multi line text as above, the vertical spacing for each line of text is not consistent, ie. the vertical distance between each line of text is not the same number of pixels, some are 12 and some are 13 pixels, suggesting underlying floating point math.]

Any advice appreciated.

Cheers,

Andy.

modified on Thursday, April 24, 2008 6:44 AM

Generalconvert datetime to decimal Pin
srinivassam23-Apr-08 21:15
srinivassam23-Apr-08 21:15 
GeneralRe: convert datetime to decimal Pin
darkelv23-Apr-08 21:32
darkelv23-Apr-08 21:32 
QuestionHow Can I close Child Form Only in Visual Studio 2005 (c#) Pin
ALAQUNAIBI23-Apr-08 4:58
ALAQUNAIBI23-Apr-08 4:58 
AnswerRe: How Can I close Child Form Only in Visual Studio 2005 (c#) Pin
Pete O'Hanlon23-Apr-08 5:25
mvePete O'Hanlon23-Apr-08 5:25 
QuestionFreeze the column in listview Pin
aravindakumar22-Apr-08 23:43
aravindakumar22-Apr-08 23:43 
GeneralForm transperancy Pin
cocoonwls22-Apr-08 18:48
cocoonwls22-Apr-08 18:48 
GeneralRe: Form transperancy Pin
Christian Graus22-Apr-08 21:53
protectorChristian Graus22-Apr-08 21:53 
GeneralRe: Form transperancy Pin
cocoonwls22-Apr-08 23:40
cocoonwls22-Apr-08 23:40 
QuestionProblem in remote desktop display options Pin
C.P.Rajesh21-Apr-08 23:41
C.P.Rajesh21-Apr-08 23:41 
QuestionReg printing of Windows forms Pin
manikandanid21-Apr-08 20:56
manikandanid21-Apr-08 20:56 
GeneralRe: Reg printing of Windows forms Pin
Christian Graus22-Apr-08 12:13
protectorChristian Graus22-Apr-08 12:13 
QuestionRe: Reg printing of Windows forms Pin
manikandanid22-Apr-08 20:00
manikandanid22-Apr-08 20:00 
GeneralRe: Reg printing of Windows forms Pin
Christian Graus22-Apr-08 21:54
protectorChristian Graus22-Apr-08 21:54 
GeneralRe: Reg printing of Windows forms Pin
manikandanid24-Apr-08 1:26
manikandanid24-Apr-08 1:26 
GeneralRe: Reg printing of Windows forms Pin
Christian Graus24-Apr-08 12:24
protectorChristian Graus24-Apr-08 12:24 
GeneralRe: Reg printing of Windows forms Pin
manikandanid27-Apr-08 21:00
manikandanid27-Apr-08 21:00 
GeneralRe: Reg printing of Windows forms Pin
Christian Graus28-Apr-08 11:26
protectorChristian Graus28-Apr-08 11:26 

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.