Click here to Skip to main content
15,884,036 members
Home / Discussions / C#
   

C#

 
SuggestionRe: Writing to UI Thread in a Real time Application Pin
BenScharbach12-Aug-17 10:17
BenScharbach12-Aug-17 10:17 
QuestionPaste CF_ENHMETAFILE=14 image file Pin
manuellopes14-Jul-17 11:32
manuellopes14-Jul-17 11:32 
SuggestionRe: Paste CF_ENHMETAFILE=14 image file Pin
Richard MacCutchan14-Jul-17 20:35
mveRichard MacCutchan14-Jul-17 20:35 
GeneralRe: Paste CF_ENHMETAFILE=14 image file Pin
manuellopes15-Jul-17 6:08
manuellopes15-Jul-17 6:08 
GeneralRe: Paste CF_ENHMETAFILE=14 image file Pin
Richard MacCutchan15-Jul-17 6:22
mveRichard MacCutchan15-Jul-17 6:22 
GeneralRe: Paste CF_ENHMETAFILE=14 image file Pin
manuellopes15-Jul-17 6:33
manuellopes15-Jul-17 6:33 
GeneralRe: Paste CF_ENHMETAFILE=14 image file Pin
Richard MacCutchan15-Jul-17 6:53
mveRichard MacCutchan15-Jul-17 6:53 
GeneralRe: Paste CF_ENHMETAFILE=14 image file Pin
manuellopes15-Jul-17 7:38
manuellopes15-Jul-17 7:38 
after some seach i came to this solucion but quality image saved is very low please advise.

Metafile emf = null;
           if (OpenClipboard(IntPtr.Zero))
           {
               if (IsClipboardFormatAvailable(CF_ENHMETAFILE))
               {
                   var ptr = GetClipboardData(CF_ENHMETAFILE);
                   if (!ptr.Equals(IntPtr.Zero))
                       emf = new Metafile(ptr, true);
                   emf.Save(@"c:\image1.png");
               }

               // You must close ir, or it will be locked
               CloseClipboard();
           }

GeneralRe: Paste CF_ENHMETAFILE=14 image file Pin
Richard MacCutchan15-Jul-17 20:30
mveRichard MacCutchan15-Jul-17 20:30 
QuestionServicePointManager and TLS1.2 with Gmail Pin
jkirkerx13-Jul-17 6:34
professionaljkirkerx13-Jul-17 6:34 
AnswerServicePoint, Address = 'smtpClient.ServicePoint.Address' threw an exception of type 'System.NotSupportedException', Pin
jkirkerx13-Jul-17 8:45
professionaljkirkerx13-Jul-17 8:45 
GeneralRe: ServicePoint, Address = 'smtpClient.ServicePoint.Address' threw an exception of type 'System.NotSupportedException', Pin
Richard Deeming13-Jul-17 9:52
mveRichard Deeming13-Jul-17 9:52 
GeneralRe: ServicePoint, Address = 'smtpClient.ServicePoint.Address' threw an exception of type 'System.NotSupportedException', Pin
jkirkerx13-Jul-17 11:38
professionaljkirkerx13-Jul-17 11:38 
GeneralRe: ServicePoint, Address = 'smtpClient.ServicePoint.Address' threw an exception of type 'System.NotSupportedException', Pin
jkirkerx13-Jul-17 12:14
professionaljkirkerx13-Jul-17 12:14 
Questionhye :) Pin
Member 1330557812-Jul-17 17:24
Member 1330557812-Jul-17 17:24 
AnswerRe: hye :) Pin
OriginalGriff12-Jul-17 20:23
mveOriginalGriff12-Jul-17 20:23 
GeneralRe: hye :) Pin
Member 1330557812-Jul-17 22:14
Member 1330557812-Jul-17 22:14 
GeneralRe: hye :) Pin
OriginalGriff12-Jul-17 22:36
mveOriginalGriff12-Jul-17 22:36 
AnswerRe: hye :) [Repost] Pin
Richard MacCutchan12-Jul-17 22:28
mveRichard MacCutchan12-Jul-17 22:28 
QuestionRx - Reactive Extensions Pin
Kevin Marois12-Jul-17 6:59
professionalKevin Marois12-Jul-17 6:59 
AnswerRe: Rx - Reactive Extensions Pin
Luc Pattyn12-Jul-17 8:02
sitebuilderLuc Pattyn12-Jul-17 8:02 
GeneralRe: Rx - Reactive Extensions Pin
Kevin Marois12-Jul-17 8:03
professionalKevin Marois12-Jul-17 8:03 
AnswerRe: Rx - Reactive Extensions Pin
Meshack Musundi12-Jul-17 10:45
professionalMeshack Musundi12-Jul-17 10:45 
AnswerRe: Rx - Reactive Extensions Pin
Kenneth Haugland13-Jul-17 13:13
mvaKenneth Haugland13-Jul-17 13:13 
AnswerRe: Rx - Reactive Extensions Pin
jschell15-Jul-17 7:41
jschell15-Jul-17 7:41 

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.