Drag and drop

R

René

Hello

Repost from Forms and Activexcontrol NGs.

How do I go about programming drag&drop between a ListView
control and a regular Access TextBox (or ComboBox) control?

I've done drag & drop operations between two ListView
controls - ie. I'm familiar with the associated events.
But the Access TextBox control doesn't have OLEDragDrop
events.

So what am I missing!

Thanx

René
Montreal
 
L

Larry Linson

The normal complement of built-in Access controls do not support
drag-and-drop. The usual approach is to use a two-list-box technique similar
to that used in the Report Wizard. There is an example, in generic form, in
every edition of the Access Developer's Handbook. And, it is not really
difficult to create your own for your specific case.

It'll be even simpler if I understand that you want to move/copy the value
into a Text or Combo Box, because you'll just need your List Box, a
CommandButton, and the target Control. Put code in the Click event of the
Command Button to set the target control from the selected value of the List
Box.

Larry Linson
Microsoft Access MVP

Hello

Repost from Forms and Activexcontrol NGs.

How do I go about programming drag&drop between a ListView
control and a regular Access TextBox (or ComboBox) control?

I've done drag & drop operations between two ListView
controls - ie. I'm familiar with the associated events.
But the Access TextBox control doesn't have OLEDragDrop
events.

So what am I missing!

Thanx

René
Montreal
 

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