Click here to Skip to main content
15,928,207 members
Home / Discussions / C#
   

C#

 
Generalread only DataGridColumn Pin
vcorn21-Jun-04 0:12
vcorn21-Jun-04 0:12 
GeneralRe: read only DataGridColumn Pin
vcorn21-Jun-04 0:17
vcorn21-Jun-04 0:17 
GeneralBind arraylist to Datagrid Pin
uyenchi21-Jun-04 0:09
uyenchi21-Jun-04 0:09 
GeneralRe: Bind arraylist to Datagrid Pin
Heath Stewart21-Jun-04 3:43
protectorHeath Stewart21-Jun-04 3:43 
QuestionHow to lock Clipboard? Pin
sachinkalse20-Jun-04 23:10
sachinkalse20-Jun-04 23:10 
AnswerRe: How to lock Clipboard? Pin
Heath Stewart21-Jun-04 3:23
protectorHeath Stewart21-Jun-04 3:23 
GeneralRe: How to lock Clipboard? Pin
sachinkalse22-Jun-04 15:26
sachinkalse22-Jun-04 15:26 
GeneralRe: How to lock Clipboard? Pin
Heath Stewart22-Jun-04 15:37
protectorHeath Stewart22-Jun-04 15:37 
No, because the clipboard contains pointers to objects. All GlobalLock would do (and you'd P/Invoke that like anything else, using GCHandle to pin reference types in memory) is lock your object to prevent it from being overwritten.

The problem you're facing is a problem that all application face. Either use a clipboard ring like Office has (and manage that yourself - ever so carefully) or learn to deal with the consequences as every other application does.

The best way is to avoid using the clipboard when you don't need it. Marshal objects to other processes and what not when possible.

 

Microsoft MVP, Visual C#
My Articles
GeneralEnum's in different assemblies Pin
Simon_uk20-Jun-04 22:31
Simon_uk20-Jun-04 22:31 
GeneralRe: Enum's in different assemblies Pin
Colin Angus Mackay21-Jun-04 0:12
Colin Angus Mackay21-Jun-04 0:12 
GeneralRe: Enum's in different assemblies Pin
Simon_uk21-Jun-04 0:44
Simon_uk21-Jun-04 0:44 
GeneralRe: Enum's in different assemblies Pin
Colin Angus Mackay21-Jun-04 1:17
Colin Angus Mackay21-Jun-04 1:17 
GeneralRe: Enum's in different assemblies Pin
Simon_uk21-Jun-04 2:27
Simon_uk21-Jun-04 2:27 
Questionhow to get machine constats in .NET Pin
Daniel Zaharia20-Jun-04 22:24
Daniel Zaharia20-Jun-04 22:24 
AnswerRe: how to get machine constats in .NET Pin
Stefan Troschuetz20-Jun-04 22:37
Stefan Troschuetz20-Jun-04 22:37 
GeneralRe: how to get machine constats in .NET Pin
Daniel Zaharia20-Jun-04 22:41
Daniel Zaharia20-Jun-04 22:41 
GeneralRe: how to get machine constats in .NET Pin
Stefan Troschuetz20-Jun-04 22:54
Stefan Troschuetz20-Jun-04 22:54 
GeneralRe: how to get machine constats in .NET Pin
eggie521-Jun-04 18:26
eggie521-Jun-04 18:26 
GeneralRe: how to get machine constats in .NET Pin
Stefan Troschuetz21-Jun-04 21:00
Stefan Troschuetz21-Jun-04 21:00 
GeneralRe: how to get machine constats in .NET Pin
eggie522-Jun-04 6:23
eggie522-Jun-04 6:23 
GeneralRe: how to get machine constats in .NET Pin
Stefan Troschuetz22-Jun-04 8:06
Stefan Troschuetz22-Jun-04 8:06 
GeneralRe: how to get machine constats in .NET Pin
eggie522-Jun-04 9:38
eggie522-Jun-04 9:38 
GeneralRe: how to get machine constats in .NET Pin
Stefan Troschuetz22-Jun-04 21:01
Stefan Troschuetz22-Jun-04 21:01 
GeneralRe: how to get machine constats in .NET Pin
Stefan Troschuetz20-Jun-04 23:06
Stefan Troschuetz20-Jun-04 23:06 
GeneralRe: how to get machine constats in .NET Pin
Daniel Zaharia20-Jun-04 23:43
Daniel Zaharia20-Jun-04 23: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.