Click here to Skip to main content
15,887,821 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Passing password to Web API Pin
Richard Deeming5-Dec-19 9:06
mveRichard Deeming5-Dec-19 9:06 
QuestionNaudio C# ASP.net Using MPG Video Pin
Member 1394308729-Nov-19 23:45
Member 1394308729-Nov-19 23:45 
AnswerRe: Naudio C# ASP.net Using MPG Video Pin
Gerry Schmitz2-Dec-19 5:15
mveGerry Schmitz2-Dec-19 5:15 
AnswerRe: Naudio C# ASP.net Using MPG Video Pin
jkirkerx2-Dec-19 9:30
professionaljkirkerx2-Dec-19 9:30 
QuestionDrawString with opacity option not print properly Pin
Le@rner29-Nov-19 19:19
Le@rner29-Nov-19 19:19 
AnswerRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 20:17
mveOriginalGriff29-Nov-19 20:17 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 20:28
Le@rner29-Nov-19 20:28 
AnswerRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 21:16
mveOriginalGriff29-Nov-19 21:16 
That should crash: pe is null
PrintPageEventArgs pe;
...          
SizeF sz = pe.MeasureString(panel2.watermarkText, panel2.watermarkFont, (int)image_draw_wd, stringFormat);
You need to use the PrintPageEventArgs that is passed in as part of the PrintPage event or the metrics you use for MeasureString won't work anyway as they aren't relevant to the device context you are drawing on - even if you construct one somewhere and don't show it here.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!

GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 21:23
Le@rner29-Nov-19 21:23 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 21:29
mveOriginalGriff29-Nov-19 21:29 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 21:30
Le@rner29-Nov-19 21:30 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 21:30
mveOriginalGriff29-Nov-19 21:30 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 21:35
Le@rner29-Nov-19 21:35 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 21:41
mveOriginalGriff29-Nov-19 21:41 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 22:06
Le@rner29-Nov-19 22:06 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 22:33
mveOriginalGriff29-Nov-19 22:33 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 22:39
mveOriginalGriff29-Nov-19 22:39 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 23:20
Le@rner29-Nov-19 23:20 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 23:23
mveOriginalGriff29-Nov-19 23:23 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 23:29
mveOriginalGriff29-Nov-19 23:29 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 23:44
Le@rner29-Nov-19 23:44 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 23:55
mveOriginalGriff29-Nov-19 23:55 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner30-Nov-19 0:03
Le@rner30-Nov-19 0:03 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff30-Nov-19 0:11
mveOriginalGriff30-Nov-19 0:11 
QuestionDialogue box disappears when I search in the combo box Pin
Member 1326263928-Nov-19 17:43
Member 1326263928-Nov-19 17:43 

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.