By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,967 Members | 1,710 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,967 IT Pros & Developers. It's quick & easy.

Ole Drag-Drop between TreeView and another control?

P: n/a
I'm doing a metadata app.

One of the screens is a TreeView of all the codes (i.e. allowed
values) from various systems.

Other screens list systems, databases, tables, and elements (i.e.
fields).

When the user is looking at the treeview and sees, say, a
node/subnodes that list countries (for instance the countries
according to SystemA and the countries according to SystemB) I'd like
them to be able to drag one of those parent nodes and drop it on a
field name to designate all the values under that node as allowed
values for that field.

I'd be happy if, in the OleStartDrag event, I could just load
something up with the PK of the node and then have it passed to some
other event when the user releases the mouse button over another
control.

Is this even remotely possible? I've found some programming examples
using OleDrag/Drop, but they all seem to focus on Drags and Drops
within the same tree control.

If push came to shove, I guess I could load some global variable with
the key value; set some kind of global switch; and the unscramble same
in the receiving object....but maybe there's a "right" way....?
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
RE/
I'd be happy if, in the OleStartDrag event, I could just load
something up with the PK of the node and then have it passed to some
other event when the user releases the mouse button over another
control.


I think I've got it nailed.

Instead of using a listbox or textbox at the receiving end, I just use another
TreeView and, if necessary, format it to look like a list box or field.
--
PeteCresswell
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.