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

C#

 
QuestionRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Matthew Klein8-Mar-10 7:46
Matthew Klein8-Mar-10 7:46 
AnswerRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
harold aptroot8-Mar-10 8:30
harold aptroot8-Mar-10 8:30 
GeneralRe: Force static objects to load when program starts, not lazy (load when first used)? Pin
Matthew Klein8-Mar-10 8:53
Matthew Klein8-Mar-10 8:53 
QuestionProblem with Display Scheme (Windows font size) Pin
sodevrom8-Mar-10 5:40
sodevrom8-Mar-10 5:40 
AnswerRe: Problem with Display Scheme (Windows font size) Pin
occcy8-Mar-10 20:53
occcy8-Mar-10 20:53 
GeneralRe: Problem with Display Scheme (Windows font size) Pin
sodevrom9-Mar-10 3:55
sodevrom9-Mar-10 3:55 
QuestionForce ClearType Text Rendering for TextBox Control PinPopular
occcy8-Mar-10 4:43
occcy8-Mar-10 4:43 
AnswerRe: Force ClearType Text Rendering for TextBox Control Pin
eonsimi2-Mar-11 22:02
eonsimi2-Mar-11 22:02 
the post it's rather old but i'll write an answer anyway for others to see it .. so here it is:

by overriding the OnPaint method should work just fine,

subclass the textbox class and in the constructor add the UserPaint style like this:

this.SetStyle(ControlStyles.UserPaint, true);


after that, override the OnPaint method and add the following line:

e.Graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;


now you may use e.Graphics.DrawString(this.Text, ...) to paint the text.
NO. Layers. Onions have layers. Ogres have layers. Onions have layers. You get it? We both have layers.

QuestionConverting powerpoint to .avi and 3gp format Pin
Muwanga Simon Peter8-Mar-10 4:32
Muwanga Simon Peter8-Mar-10 4:32 
AnswerRe: Converting powerpoint to .avi and 3gp format Pin
Som Shekhar8-Mar-10 6:49
Som Shekhar8-Mar-10 6:49 
GeneralRe: Converting powerpoint to .avi and 3gp format Pin
Muwanga Simon Peter8-Mar-10 18:42
Muwanga Simon Peter8-Mar-10 18:42 
QuestionHow do I convert an XLS document to XML in C#? Pin
asdxxxx8-Mar-10 4:02
asdxxxx8-Mar-10 4:02 
AnswerRe: How do I convert an XLS document to XML in C#? Pin
Not Active8-Mar-10 4:09
mentorNot Active8-Mar-10 4:09 
GeneralRe: How do I convert an XLS document to XML in C#? Pin
asdxxxx8-Mar-10 4:17
asdxxxx8-Mar-10 4:17 
GeneralRe: How do I convert an XLS document to XML in C#? Pin
Keith Barrow8-Mar-10 4:19
professionalKeith Barrow8-Mar-10 4:19 
GeneralRe: How do I convert an XLS document to XML in C#? Pin
asdxxxx8-Mar-10 4:45
asdxxxx8-Mar-10 4:45 
GeneralRe: How do I convert an XLS document to XML in C#? Pin
Keith Barrow8-Mar-10 5:30
professionalKeith Barrow8-Mar-10 5:30 
GeneralRe: How do I convert an XLS document to XML in C#? Pin
asdxxxx8-Mar-10 20:26
asdxxxx8-Mar-10 20:26 
Questionforce ToString() override in Deriv classed (already having a Base class) Pin
George Nistor8-Mar-10 3:49
George Nistor8-Mar-10 3:49 
AnswerRe: force ToString() override in Deriv classed (already having a Base class) Pin
Keith Barrow8-Mar-10 4:01
professionalKeith Barrow8-Mar-10 4:01 
AnswerRe: force ToString() override in Deriv classed (already having a Base class) Pin
Not Active8-Mar-10 4:05
mentorNot Active8-Mar-10 4:05 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
Keith Barrow8-Mar-10 4:13
professionalKeith Barrow8-Mar-10 4:13 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
Not Active8-Mar-10 4:20
mentorNot Active8-Mar-10 4:20 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
George Nistor8-Mar-10 6:49
George Nistor8-Mar-10 6:49 
GeneralRe: force ToString() override in Deriv classed (already having a Base class) Pin
Keith Barrow8-Mar-10 6:58
professionalKeith Barrow8-Mar-10 6:58 

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.