Drag and Drop to SysTray ?

C

Chris Johnson

Hi guys,

I'm working on a application that I want to drag a file into, and at the
time of dropping, get the full path of the file. But, what I really want is
to drag the file to a waiting NotifyIcon in the system tray and drop it
there to execute the process.

I notice in just playing around some that dragging and mousing over anything
currently in my task tray yields an 'invalid' mouse pointer and was
wondering if someone could tell me if it is even conceivable to do this
before I spend to much time on it.

Thanks guys,
chrisj
 
H

Herfried K. Wagner [MVP]

Chris,

Chris Johnson said:
I'm working on a application that I want to drag a file into, and at the
time of dropping, get the full path of the file. But, what I really want
is to drag the file to a waiting NotifyIcon in the system tray and drop it
there to execute the process.

I would not include this feature in an application simply because it's very
uncommon to drag something over the taskbar's notification area.
 
C

Chris Johnson

Herfried,

For the average user I would more than totally agree, it would be highly
unintuitive.

In this one instance though, this application would be well benefited by it.
Basically,
in my work I have to generate many postscript files during my day to day
work, and,
if I want to see what they look like without printing, I then have to
distill it. This leads
to many problems with distilling from different network locations, to
different network
locations and so forth.

My dream application is that I can drag and drop a PS file to the app, it
does the work
in the background, and I get my PDF. I can do everything but the drag to
systray. It would
just be nicer if it could reside there rather than the start bar.

Any thoughts?

chrisj
 
H

Herfried K. Wagner [MVP]

Chris Johnson said:
In this one instance though, this application would be well benefited by
it. Basically,
in my work I have to generate many postscript files during my day to day
work, and,
if I want to see what they look like without printing, I then have to
distill it. This leads
to many problems with distilling from different network locations, to
different network
locations and so forth.

I am sorry, but I do not have an idea on how to implement this particular
feature you are requesting. However, some applications such as FlashGet (a
file download client) place a so-called "drop target" somewhere on the
screen, which is a semi-transparent small borderless window which is
displayed on top of all other windows (see properties 'TopMost' and
'Opacity' of Windows Forms forms).
 
C

Chris Dunaway

Chris said:
My dream application is that I can drag and drop a PS file to the app, it
does the work
in the background, and I get my PDF. I can do everything but the drag to
systray. It would
just be nicer if it could reside there rather than the start bar.

Why not just add an option to the context menu so that when you right
click on a PS file, you get a menu option to do the work you want?
That seems more intuitive to me.
 
C

Chris Johnson

Yea, that is what I think I will end up doing. The drop to system tray was
just desired so that I could learn something new on the way to completion of
the project.

Thanks for the input all!
chrisj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top