Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is this good code practice? Pin
venomation2-May-10 11:41
venomation2-May-10 11:41 
GeneralRe: Is this good code practice? Pin
PIEBALDconsult2-May-10 17:44
mvePIEBALDconsult2-May-10 17:44 
AnswerRe: Is this good code practice? Pin
venomation3-May-10 0:56
venomation3-May-10 0:56 
GeneralRe: Is this good code practice? Pin
PIEBALDconsult3-May-10 3:59
mvePIEBALDconsult3-May-10 3:59 
GeneralRe: Is this good code practice? Pin
Alaric_3-May-10 4:45
professionalAlaric_3-May-10 4:45 
GeneralRe: Is this good code practice? Pin
venomation3-May-10 5:04
venomation3-May-10 5:04 
QuestionCreate Image in WinForms vs Asp.net Pin
#realJSOP30-Apr-10 9:44
mve#realJSOP30-Apr-10 9:44 
AnswerRe: Create Image in WinForms vs Asp.net Pin
Luc Pattyn30-Apr-10 10:04
sitebuilderLuc Pattyn30-Apr-10 10:04 
Hi John, I think I have a partial answer for you: within a WinForm app, when you create a bitmap and then a Graphics from that, you get a Graphics that is compatible with your screen, so e.g. you could use MeasureString and get (pretty) accurate predictions for when you are going to draw some text in the Form.Paint handler.

AFAIK it does so by guessing which monitor you are on (when you have more than one that is). I never did any such thing in ASP.NET, I guess it does not have a (relevant) monitor around for you, so its properties could be way off; you might have a look at DpiX and DpiY (they are getters only!).

I don't know the solution right now; a little Google action pointed me here[^], maybe that helps.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP30-Apr-10 11:35
mve#realJSOP30-Apr-10 11:35 
GeneralRe: Create Image in WinForms vs Asp.net Pin
Luc Pattyn30-Apr-10 11:41
sitebuilderLuc Pattyn30-Apr-10 11:41 
GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP30-Apr-10 12:04
mve#realJSOP30-Apr-10 12:04 
GeneralRe: Create Image in WinForms vs Asp.net Pin
Luc Pattyn30-Apr-10 12:30
sitebuilderLuc Pattyn30-Apr-10 12:30 
GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP30-Apr-10 23:10
mve#realJSOP30-Apr-10 23:10 
GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP1-May-10 3:07
mve#realJSOP1-May-10 3:07 
GeneralRe: Create Image in WinForms vs Asp.net Pin
Luc Pattyn1-May-10 3:32
sitebuilderLuc Pattyn1-May-10 3:32 
GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP1-May-10 7:35
mve#realJSOP1-May-10 7:35 
GeneralRe: Create Image in WinForms vs Asp.net Pin
Luc Pattyn1-May-10 8:19
sitebuilderLuc Pattyn1-May-10 8:19 
GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP1-May-10 8:47
mve#realJSOP1-May-10 8:47 
GeneralRe: Create Image in WinForms vs Asp.net [modified] Pin
#realJSOP1-May-10 9:10
mve#realJSOP1-May-10 9:10 
GeneralRe: Create Image in WinForms vs Asp.net Pin
Luc Pattyn1-May-10 9:48
sitebuilderLuc Pattyn1-May-10 9:48 
GeneralRe: Create Image in WinForms vs Asp.net Pin
#realJSOP1-May-10 14:00
mve#realJSOP1-May-10 14:00 
QuestionPicture in Crystal Report Pin
SajjadZare30-Apr-10 8:55
SajjadZare30-Apr-10 8:55 
QuestionDirectshow.net pitch audio control Pin
akaiito30-Apr-10 7:26
akaiito30-Apr-10 7:26 
QuestionProblems with Label's Properties Pin
jonatan_55630-Apr-10 6:46
jonatan_55630-Apr-10 6:46 
AnswerRe: Problems with Label's Properties Pin
Abhinav S30-Apr-10 7:05
Abhinav S30-Apr-10 7:05 

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.