Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help Displaying Unicode String Pin
WorldNomad20-Nov-03 16:41
WorldNomad20-Nov-03 16:41 
GeneralMake control draw on top of other forms Pin
JacksonBrown196019-Nov-03 12:37
JacksonBrown196019-Nov-03 12:37 
GeneralRe: Make control draw on top of other forms Pin
Heath Stewart20-Nov-03 3:55
protectorHeath Stewart20-Nov-03 3:55 
GeneralRe: Make control draw on top of other forms Pin
JacksonBrown196020-Nov-03 5:11
JacksonBrown196020-Nov-03 5:11 
GeneralProblem testing NetworkStream for remote close Pin
ChiPlastique19-Nov-03 12:25
ChiPlastique19-Nov-03 12:25 
GeneralRe: Problem testing NetworkStream for remote close Pin
Kentamanos19-Nov-03 12:53
Kentamanos19-Nov-03 12:53 
GeneralShell context menu Pin
Ludwig Stuyck19-Nov-03 11:14
Ludwig Stuyck19-Nov-03 11:14 
GeneralRe: Shell context menu Pin
Heath Stewart19-Nov-03 18:48
protectorHeath Stewart19-Nov-03 18:48 
This is really not as easy as you might hope and - to do so in C# - will require recreating countless interfaces, enum, structs, and consts already defined in various headers for Win32 shell programming.

See my answer to a somewhat similar problem to an early question today: http://www.codeproject.com/script/comments/forums.asp?msg=669971&forumid=1649#xx669971xx[^]

While this isn't exactly what you're looking for, you're now going to have to play the part of the Windows shell and pass an ITEMIDLIST - which is going to be hard enough in an application that knows little about the actual shell - to a default context menu while accessing the registry to query for other context menu handlers for the associated file type. I give several links in that previous post. You should read the documentation at the targets of those links about shell programming. There's a lot involved so you might consider just handling generic operations like copy, cut, and paste (if they represent real files, you can simply use the DragDropFormats.Files clipboard format and put a string[] array of filenames into the DataObject for the drag-n-drop or clipboard operation like cut and copy (using the appropriate DragDropEffects). That clipboard format is one the shell recognizes and will cut or copy the files appropriately.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow to get Internet Eplorer Selected Text? Pin
Utku KAYA19-Nov-03 10:30
Utku KAYA19-Nov-03 10:30 
AnswerRe: How to get Internet Eplorer Selected Text? Pin
Heath Stewart19-Nov-03 18:33
protectorHeath Stewart19-Nov-03 18:33 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Judah Gabriel Himango20-Nov-03 4:36
sponsorJudah Gabriel Himango20-Nov-03 4:36 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Heath Stewart20-Nov-03 7:17
protectorHeath Stewart20-Nov-03 7:17 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Utku KAYA21-Nov-03 11:25
Utku KAYA21-Nov-03 11:25 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Heath Stewart22-Nov-03 11:13
protectorHeath Stewart22-Nov-03 11:13 
General.NET : DEBUG and RELEASE problem Pin
youssef19-Nov-03 9:30
youssef19-Nov-03 9:30 
GeneralRe: .NET : DEBUG and RELEASE problem Pin
Heath Stewart19-Nov-03 18:29
protectorHeath Stewart19-Nov-03 18:29 
GeneralCOM Interop problem Pin
Jose Vicente19-Nov-03 5:05
Jose Vicente19-Nov-03 5:05 
GeneralRe: COM Interop problem Pin
Heath Stewart19-Nov-03 8:45
protectorHeath Stewart19-Nov-03 8:45 
GeneralUsing a HWND from another application. Pin
mhand7519-Nov-03 5:04
mhand7519-Nov-03 5:04 
GeneralRe: Using a HWND from another application. Pin
John Arlen19-Nov-03 8:35
John Arlen19-Nov-03 8:35 
Generalfastest active directory access Pin
thilol19-Nov-03 4:02
thilol19-Nov-03 4:02 
GeneralRe: fastest active directory access Pin
Heath Stewart19-Nov-03 4:20
protectorHeath Stewart19-Nov-03 4:20 
GeneralRe: fastest active directory access Pin
thilol19-Nov-03 4:30
thilol19-Nov-03 4:30 
GeneralCOM Object on C# Pin
bva_bva19-Nov-03 3:28
bva_bva19-Nov-03 3:28 
GeneralRe: COM Object on C# Pin
Heath Stewart19-Nov-03 4:09
protectorHeath Stewart19-Nov-03 4:09 

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.