Click here to Skip to main content
14,428,476 members
   

C#

 
AnswerRe: C# Passing password to Web API Pin
Richard Deeming5-Dec-19 10:06
communityengineerRichard Deeming5-Dec-19 10:06 
QuestionNaudio C# ASP.net Using MPG Video Pin
Member 1394308730-Nov-19 0:45
MemberMember 1394308730-Nov-19 0:45 
AnswerRe: Naudio C# ASP.net Using MPG Video Pin
Gerry Schmitz2-Dec-19 6:15
mveGerry Schmitz2-Dec-19 6:15 
AnswerRe: Naudio C# ASP.net Using MPG Video Pin
jkirkerx2-Dec-19 10:30
professionaljkirkerx2-Dec-19 10:30 
QuestionDrawString with opacity option not print properly Pin
Le@rner29-Nov-19 20:19
MemberLe@rner29-Nov-19 20:19 
AnswerRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 21:17
communityengineerOriginalGriff29-Nov-19 21:17 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 21:28
MemberLe@rner29-Nov-19 21:28 
AnswerRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 22:16
communityengineerOriginalGriff29-Nov-19 22: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 22:23
MemberLe@rner29-Nov-19 22:23 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 22:29
communityengineerOriginalGriff29-Nov-19 22:29 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 22:30
MemberLe@rner29-Nov-19 22:30 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 22:30
communityengineerOriginalGriff29-Nov-19 22:30 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 22:35
MemberLe@rner29-Nov-19 22:35 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 22:41
communityengineerOriginalGriff29-Nov-19 22:41 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner29-Nov-19 23:06
MemberLe@rner29-Nov-19 23:06 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 23:33
communityengineerOriginalGriff29-Nov-19 23:33 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff29-Nov-19 23:39
communityengineerOriginalGriff29-Nov-19 23:39 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner30-Nov-19 0:20
MemberLe@rner30-Nov-19 0:20 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff30-Nov-19 0:23
communityengineerOriginalGriff30-Nov-19 0:23 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff30-Nov-19 0:29
communityengineerOriginalGriff30-Nov-19 0:29 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner30-Nov-19 0:44
MemberLe@rner30-Nov-19 0:44 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff30-Nov-19 0:55
communityengineerOriginalGriff30-Nov-19 0:55 
GeneralRe: DrawString with opacity option not print properly Pin
Le@rner30-Nov-19 1:03
MemberLe@rner30-Nov-19 1:03 
GeneralRe: DrawString with opacity option not print properly Pin
OriginalGriff30-Nov-19 1:11
communityengineerOriginalGriff30-Nov-19 1:11 
QuestionDialogue box disappears when I search in the combo box Pin
Member 1326263928-Nov-19 18:43
MemberMember 1326263928-Nov-19 18: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.