Click here to Skip to main content
15,914,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: picking random colors Pin
Colin Angus Mackay25-Jun-04 12:48
Colin Angus Mackay25-Jun-04 12:48 
GeneralRe: picking random colors Pin
Nick Parker25-Jun-04 19:07
protectorNick Parker25-Jun-04 19:07 
GeneralRe: picking random colors Pin
Anonymous26-Jun-04 7:00
Anonymous26-Jun-04 7:00 
GeneralRe: picking random colors Pin
Heath Stewart26-Jun-04 14:05
protectorHeath Stewart26-Jun-04 14:05 
GeneralRe: picking random colors Pin
Karl 200027-Jun-04 7:31
Karl 200027-Jun-04 7:31 
GeneralGet domain name the machne has been logged into Pin
michalJ25-Jun-04 10:07
michalJ25-Jun-04 10:07 
GeneralRe: Get domain name the machne has been logged into Pin
Heath Stewart25-Jun-04 10:23
protectorHeath Stewart25-Jun-04 10:23 
GeneralC++ to C# - Dragging nightmare Pin
TylerBrinks25-Jun-04 8:07
TylerBrinks25-Jun-04 8:07 
Ok - here's the story:
c++ supports a coclass (CLSID_DragDropHelper) with 2 interfaces; IDropTargetHelper and IDropSourceHelper. The IDropTargetHelper has 4 methods, DragEnter, DragLeave, DragOver and Drop. Calling these methods is what gives c++ the ability to display a drag image created by the shell. In other words, you can drag from Windows Explorer and your form/control will display the drag image.

C#, on the other hand, doesn’t have the ability to do this natively. I’ve found an old VB6 project that allows anything with a valid Windows handle to be subclassed, thereby supporting the Explorer drag image. I created an RCW (Runtime Callable Wrapper) of the project's ATL library and attempted to get the same effect in c#. Sadly, I could not get it to work. Something that VB’s internals hide from developers allows the subclassing to work, and I have no idea how to get it to work in c# (seems like an OLE problem??)

I would be grateful if anyone can make the following VB6 project work with either c# or vb.net:

Download the project at:
http://www.glimt.dk/code/clipx.zip (Run the project and drag something from Explorer over the Drag/Clip button)


More info can be found on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/ddhelp_pt1.asp
GeneralRe: C++ to C# - Dragging nightmare Pin
Heath Stewart25-Jun-04 8:43
protectorHeath Stewart25-Jun-04 8:43 
GeneralRe: C++ to C# - Dragging nightmare Pin
TylerBrinks25-Jun-04 9:17
TylerBrinks25-Jun-04 9:17 
GeneralRe: C++ to C# - Dragging nightmare Pin
Heath Stewart25-Jun-04 9:50
protectorHeath Stewart25-Jun-04 9:50 
GeneralDll Merge Pin
Visionsoft25-Jun-04 8:05
Visionsoft25-Jun-04 8:05 
GeneralRe: Dll Merge Pin
Heath Stewart25-Jun-04 8:38
protectorHeath Stewart25-Jun-04 8:38 
GeneralRe: Dll Merge Pin
leppie25-Jun-04 9:37
leppie25-Jun-04 9:37 
GeneralRe: Dll Merge Pin
Heath Stewart25-Jun-04 10:19
protectorHeath Stewart25-Jun-04 10:19 
Questionie control and ASP.NET not behaving? Pin
LongRange.Shooter25-Jun-04 5:10
LongRange.Shooter25-Jun-04 5:10 
AnswerRe: ie control and ASP.NET not behaving? Pin
Heath Stewart25-Jun-04 6:20
protectorHeath Stewart25-Jun-04 6:20 
GeneralExtended Ascii Encoding Pin
zainu25-Jun-04 2:46
zainu25-Jun-04 2:46 
GeneralRe: Extended Ascii Encoding Pin
Heath Stewart25-Jun-04 5:42
protectorHeath Stewart25-Jun-04 5:42 
GeneralRe: Extended Ascii Encoding Pin
zainu25-Jun-04 19:50
zainu25-Jun-04 19:50 
GeneralRe: Extended Ascii Encoding Pin
Heath Stewart26-Jun-04 14:02
protectorHeath Stewart26-Jun-04 14:02 
GeneralRe: Extended Ascii Encoding Pin
yosr20-Jan-13 1:33
yosr20-Jan-13 1:33 
GeneralRe: Extended Ascii Encoding Pin
Hovik Melkomian7-Jul-04 22:56
Hovik Melkomian7-Jul-04 22:56 
GeneralRe: Extended Ascii Encoding Pin
Heath Stewart8-Jul-04 3:45
protectorHeath Stewart8-Jul-04 3:45 
Generaltext encoding Pin
amatyasik25-Jun-04 2:01
amatyasik25-Jun-04 2:01 

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.