Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to let user influence setup Pin
troels_sorensen14-Nov-03 8:19
troels_sorensen14-Nov-03 8:19 
GeneralDatagrid Binding - Sync two Grids... Pin
mgaerber14-Nov-03 1:26
mgaerber14-Nov-03 1:26 
GeneralRe: Datagrid Binding - Sync two Grids... Pin
Heath Stewart14-Nov-03 3:46
protectorHeath Stewart14-Nov-03 3:46 
GeneralRe: Datagrid Binding - Sync two Grids... Pin
mgaerber15-Nov-03 6:26
mgaerber15-Nov-03 6:26 
GeneralRe: Datagrid Binding - Sync two Grids... Pin
Heath Stewart15-Nov-03 6:32
protectorHeath Stewart15-Nov-03 6:32 
GeneralRe: Datagrid Binding - Sync two Grids... Pin
mgaerber20-Nov-03 2:23
mgaerber20-Nov-03 2:23 
GeneralAbout Get Data from Clipboard Pin
RafMar14-Nov-03 0:27
RafMar14-Nov-03 0:27 
GeneralRe: About Get Data from Clipboard Pin
peaceman7721-Jan-09 21:33
peaceman7721-Jan-09 21:33 
<declare snippet="">
public const uint CF_METAFILEPICT = 3;
public const uint CF_ENHMETAFILE = 14;

[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern bool OpenClipboard(IntPtr hWndNewOwner);

[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern bool CloseClipboard();

[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern IntPtr GetClipboardData(uint format);

[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern bool IsClipboardFormatAvailable(uint format);
br mode="hold" />
<br />
// Returns True<br />
if (Win32.OpenClipboard(new IntPtr(0)))<br />
   {<br />
   // Returns True<br />
   if (Win32.IsClipboardFormatAvailable(Win32.CF_ENHMETAFILE))<br />
   {<br />
       // Returns 0<br />
       IntPtr ptr = Win32.GetClipboardData(Win32.CF_ENHMETAFILE);<br />
       if (!ptr.Equals(new IntPtr(0)))<br />
       {<br />
           // Never get here!  :-(<br />
           Metafile metafile = new Metafile(ptr,true);<br />
        }<br />
    }<br />
   Win32.CloseClipboard();<br />
}<br />
br mode="hold" />
You can pass this.Handle instead of new IntPtr(0)
GeneralWindows shortcuts Pin
Jonathan Slenders14-Nov-03 0:22
Jonathan Slenders14-Nov-03 0:22 
GeneralRe: Windows shortcuts Pin
Heath Stewart14-Nov-03 3:38
protectorHeath Stewart14-Nov-03 3:38 
Generalvoice communication with c# Pin
Mertli Ozgur Nevres13-Nov-03 23:27
Mertli Ozgur Nevres13-Nov-03 23:27 
GeneralRe: voice communication with c# Pin
Heath Stewart14-Nov-03 3:40
protectorHeath Stewart14-Nov-03 3:40 
Generalcheck box... Pin
ramya8313-Nov-03 22:50
ramya8313-Nov-03 22:50 
GeneralRe: check box... Pin
Corinna John13-Nov-03 23:48
Corinna John13-Nov-03 23:48 
GeneralRe: check box... Pin
ramya8314-Nov-03 2:45
ramya8314-Nov-03 2:45 
GeneralRe: check box... Pin
Heath Stewart14-Nov-03 3:08
protectorHeath Stewart14-Nov-03 3:08 
QuestionHow to use C# Pin
Xuan Thuy13-Nov-03 22:12
Xuan Thuy13-Nov-03 22:12 
AnswerRe: How to use C# Pin
Heath Stewart14-Nov-03 2:56
protectorHeath Stewart14-Nov-03 2:56 
Questionhow to get the indexes of selected items in DataGrid? Pin
wangier13-Nov-03 21:13
wangier13-Nov-03 21:13 
AnswerRe: how to get the indexes of selected items in DataGrid? Pin
Heath Stewart14-Nov-03 2:49
protectorHeath Stewart14-Nov-03 2:49 
GeneralTab control issue Pin
Gambit00713-Nov-03 20:05
Gambit00713-Nov-03 20:05 
GeneralSimple Question: COM interop Pin
CillyMe13-Nov-03 17:15
CillyMe13-Nov-03 17:15 
GeneralRe: Simple Question: COM interop Pin
Heath Stewart14-Nov-03 2:29
protectorHeath Stewart14-Nov-03 2:29 
Generalresizing controls Pin
udaan200313-Nov-03 13:16
udaan200313-Nov-03 13:16 
GeneralRe: resizing controls Pin
Heath Stewart14-Nov-03 2:41
protectorHeath Stewart14-Nov-03 2: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.