Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How To Drag And Drop From Outlook Into Vb Listbox, Textbox Or Listview


Hi,
URGENT!!!!
Can someone help in how to drag and drop an item from outlook like email into vb listbox or textbox using vb programming with keeping all item's or email's properties in vb so I can access all the item's or email's properties fom vb. Can you give me a hint, code, or website to read. Any help is appreciated. Thanks in advance.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Drag And Drop An Item From Outlook Into Vb Listbox Or Textbox
Hi,
URGENT!!!!
Can someone help in how to drag and drop an item from outlook like email into vb listbox or textbox using vb programming with keeping all item's or email's properties in vb so I can access all the item's or email's properties fom vb. Can you give me a hint, code, or website to read. Any help is appreciated. Thanks in advance.

Drag And Drop From Listview Onto Listbox
I need to be able to perform a drag'n'drop from a listview in report-view mode onto a listbox.

I can get the first item (I want to multiple select too) that is dropped, however I cannot do the following:

1) I want multiple, performing a For Each vfn In Data.GetData(1) doesn't work, I get can the first item by msgbox data.getdata(1)

2) The destination listbox, how can I tell what item in the listbox that the dragged objects have landed on.

Cheers!

Carl.

Drag & Drop Within A Listbox Or Listview?
Let's say you have a listbox containing 50 items (rows) that is populated from a database table. That listbox is sorted 1 through 50 based on a field called "ORDER".

If I want to allow the user of my VB application to change the order of the records (and the order field accordingly) using drag and drop, is that possible? What I'm thinking is that they can click on, say, item 32 in the list, and drag it up or down the list to the spot they are looking for and then my program will reorder everything.

Basically, my software has a combobox that is populated and ordered using this table. On certain occaisions the user has to change this order (for data entry purposes), so they need a fast way to go about this. The way the previous programmer made it, once they order one thing differently, they have to go all the way through the list again and reorder everything else. Any tips on how to make this smooth and relativley effortless for the end user would be appreciated.

Thanks again everyone

Drag/drop Files From Explorer To Any Textbox, Combo Or Listbox...
In order to fill a texbox, combo box or listbox with files dropped from explorer you need to subclass it and handle the WM_DROPFILES message. The attached module can be dropped in to any project to enable you to have drag-drop files from explorer more easily.

usage:

Code:
Private Sub Form_Load()

Call DragDropFiles.EnableDragDrop(Me.List1)

End Sub

Outlook Drag Drop
I know if you drag a email from outlook 2000 to vb you can use
oledragdrop and retrieve a long string which has the

subject/to/from/ text message in it.

Is there a way to get the attachments out of the drag drop.??


Nick

DRAG N DROP From MS Outlook
I wanted to drag n drop from MS outlook in my application in VB.

That is I wanted to drag n drop n directly email from my application.

HOW CAN I DO THIS?

Drag Drop Outlook Message
hello ,

If I drag and drop an Outlook Mail (Contact etc.) to my desktop, an Icon is created there. I assume that's just a reference to the original object in Outlook (?). Now I'd like to simulate that behavior in my VB6 application.

If I drop an Outlook Mail on my app, the format (.GetFormat) is 1 _and_ 13 and contains the same text (.GetData) as is displayed in the Outlook list.

First I thought about looping through all Outlook Mails and see if the subject matches the subject part of the dropped object.

But thats not a save way, because multiple mail can have the same subject.

Does anyone know a save way to accomplish this?


have fun
Nme

Drag/drop Outlook Email
I posted this a few days ago but no one answered.. I know it is kind of hard but I am still looking for a solution. I have been searching the knowledge base with no results.

I want to drag an outlook email from outlook into my VB app and display the emails text in a textbox. Anyone know how I could go about this? I am not sure how to use the DataObject that is passed into the DragDrop event when dragging in a mail item. I have gotten this to work with a text file.. but not with an email..

Drag Drop Outlook Emails?
Anyone know how I could go about dragging an outlook email message from outlook over and drop it into my VB app and read in the email message into a string or a RTB or whatever..??

Outlook Drag And Drop Email
Hi, what I want to do is to be able to drag an email from Outlook Express and drop it in my VB app then save it to a path I've specified in the eml format. Just like when you drag and drop the email in a winexplorer window.

I tried so many things, and there is no information about the format to use with the GetData and GetFormat method.

Any help will be very appreciate.

Thank you.

Outlook Drag And Drop Email
Hi, what I want to do is to be able to drag an email from Outlook Express and drop it in my VB app then save it to a path I've specified in the eml format. Just like when you drag and drop the email in a winexplorer window.

I tried so many things, and there is no information about the format to use with the GetData and GetFormat method.

Any help will be very appreciate.

Thank you.

Drag And Drop Attachments From Outlook In A VB Application
Is there a way to get the path of the attachments from a outlook email out of the drag drop event?

thanks

Please Help Me With Drag & Drop Outlook Express Emails
Hello Forum Members;

I'm trying to Drag-n-Drop Email messages directly from Outlook Express. I could do it for one single Email address with following simple code written in TextBox_OLEDragDrop event as TextBox.Text = Data.GetData(vbCFText). However, more than one Outlook Express Email Message are selected and Dragged onto Textbox, code fails. I could not find Data Format for it as well! Has anybody developed similar code in VB?

To see what I'm talking about, please do the following ...

(1) Download the attached VB Code and run it. Keep it running.
(2) Start Outlook Express.
(3) Click Inbox (or any folder which has Email messages in it.) All Email messages will be listed in Outlook Express Email List (usualy above the Email Preview pane.).
(4) Click any of the Email Messages listed and drag it to Textbox of our tool. You will see the Message Text along with From: To: etc.
(5) Now, try Step 4 with more than one Email message selected. It does not work.

Any work around for it? Waiting for your reply ...

-- Ruturaj.

Please Help Me With Drag & Drop Outlook Express Emails
Hello Forum Members;

I'm trying to Drag-n-Drop Email messages directly from Outlook Express. I could do it for one single Email address with following simple code written in TextBox_OLEDragDrop event as TextBox.Text = Data.GetData(vbCFText). However, more than one Outlook Express Email Message are selected and Dragged onto Textbox, code fails. I could not find Data Format for it as well! Has anybody developed similar code in VB?

To see what I'm talking about, please do the following ...

(1) Download the attached VB Code and run it. Keep it running.
(2) Start Outlook Express.
(3) Click Inbox (or any folder which has Email messages in it.) All Email messages will be listed in Outlook Express Email List (usualy above the Email Preview pane.).
(4) Click any of the Email Messages listed and drag it to Textbox of our tool. You will see the Message Text along with From: To: etc.
(5) Now, try Step 4 with more than one Email message selected. It does not work.

Any work around for it? Waiting for your reply ...

-- Ruturaj.

Outlook Style Calendar Help - Drag N Drop
Hi

Does anyone know or have some source code that will enable me to either do or learn from to do a calendar like in outlook.

I am creating a application where I want the users to be able to add an event to a calendar database by simply selecting a start date and dragging to the finish date. On dragdrop they would be prompted to enter a description and any notes for the event.

Any help would be appreciated.


Thanks in advance.

Drag And Drop Outlook Attachment To Vb Form
Hi I have trouble perform drag and drop outlook attachment to vb form. My intension is to drag and drop outlook attachment to VB form listview, update the list view with the file name and also save the files to database. However, I can not find a way to define the attachment since in the oledraganddrop the data argument is not compatible with the outlook attachment. currently, I can get the currently open outlook mailitem, hard code the index number of the attachment collection and save it to disk. So I wish someone at lease would show me how it is possible to perform drag and drop attachment from mailitem to desktop or something like that.
Thanks

How To Drag And Drop Outlook Email To VB Form
Hello all,

I'm trying to drag an email from an Outlook folder to a VB form.

What I have until now is just a few lines of text on sender, subject and date. What I would like is something more or less like the drag/drop available in Windows Explorer, in order to code an entire email (with attachments) in a database for example.

For what I can see, GetData and GetFormat are of no use.

Can anyone help me on this ???
Thanks in advance

Yannick

Listview Drag And Drop
Hi,
i have a listview set up as a listing of files.

I have the drop function up and running so the user can drop files straight into the list but what i can get working is the drop function.

All i want to be able to do is have the user drag the selected items from the list outside the form and return the address of where the files are to be dropped as a message box.

If anyone can help or point me in the right direction it would be great,
-Dave

Listview Drag & Drop
Hello,
Can someone please point me in the direction of an example of using drag & drop within listview. I've been searching the web and keep coming up empty handed!

What I'm trying to do is something like Winamp does in it's playlist for example. I would like to be able to drag a full row of data and drop it in another row.
Thank you!

Listview Drag N Drop
Hi anyone have any ideas how to create a drag N drop between two listviews? I keep coming up with an error with this code, the line that is red is where the error comes up:


Private Sub lstview1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim c As Long

Set lstview1.SelectedItem = lstview1.HitTest(X, Y)
c = lstview1.SelectedItem.Index
lstview1.DragIcon = images.ItemIndex(3)
lstview1.Drag vbBeginDrag

End Sub



Private Sub lstview2_DragDrop(Source As Control, X As Single, Y As Single)
Dim LI2 As ListItem, LI3 As ListItem, i As Byte
Set LI3 = lstview2.HitTest(X, Y)
If LI3 Is Nothing = False Then
Set LI2 = lstview2.ListItems.Add(LI3.Index + IIf(LI3.Index < Source.SelectedItem.Index, 0, 1), , Source.SelectedItem.Text)
Else
Set LI2 = lstview2.ListItems.Add(, , Source.SelectedItem.Text)
End If
For i = 1 To lstview2.ColumnHeaders.Count - 1
LI2.SubItems(i) = lstview2.SelectedItem.SubItems(i)
Next i
lstview2.ListItems.Remove lstview1.SelectedItem.Index
LI2.Selected = True

End Sub

Drag &amp; Drop In Listview
Hi Everone!

I would like to know, how I can drag & drop rows IN a listview.
I've seen some examples for a listbox, but not for a listview...

Thanks a lot!

Greetz Kevin,

ListView Drag 'n Drop
I have most of the functionality for dragging and item from a listview and setting the text in a textbox to that data. However, when I drag the the item I get a drag icon that to the user code be interpreted as dragging the whole list. Basically, instead of a small rectangle I'm getting a big one. How would I go about fixing it?


Code:
Dim strHolder As String
Private Sub ListView1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Not (ListView1.HitTest(X, Y) Is Nothing) Then
ListView1.HitTest(X, Y).Selected = True
strHolder = ListView1.SelectedItem.Text
ListView1.Drag
End If
End Sub

Private Sub Text1_DragDrop(Source As Control, X As Single, Y As Single)
If TypeOf Source Is ListView Then
Text1.Text = strHolder
End If
End Sub

Private Sub Text1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
If TypeOf Source Is ListView Then
If State = 0 Then Text1.BackColor = &HFFFFC0
If State = 1 Then Text1.BackColor = &HFFFFFF
End If
End Sub

Help With Listview Drag And Drop
I have a listview with folders on top with files listed after them. I want the user to be able to drag and drop a file into a folder. I know this can be done with drag and drop, however is there a way to auto scroll up or down when the user drags the file that way.

Thanks

Help With Drag/drop From Listview
I have a ListView control and a number of text boxes.
When I try and drag/drop from the listview to a text box or list box
I get the error 438
'Object doesn't support this property or method'
can any one help ??

Drag And Drop On ListView
Is there a way to use a drag and drop operation on a listview control itself. For example if I wanted to move a file on a listview control to a folder in the same listview control. Can this be done?

Thanks

Listview Drag Drop
How do you drag a row in a list view box an drop it to another part of the list view so that the row is inserted between the two rows where the drop occurs.

Listview Drag And Drop
Does anyone know how I can drag and drop multiple values from one listview to another. Using the listview_OLEDragDrop event I can transfer 1 value, but it doesn't work if my source listview allows multiselect.

Listview Drag And Drop
Hello there,

I have a listview with 3 columns.
I Want to drag the 3 colums to a textbox.
I use the statement CentralMemoListFrm.liMemo.SelectedItem = CentralMemoListFrm.liMemo.HitTest(X, Y) to determine which row us selected.
But this statement selects the text of the first column instead of the third.

Does anybody know how to select the text of the 3 column of the row selected?

Many thankx!!!

Drag Drop With ListView
Yeap... I missed the cDItem class. Here you have the code. Hope it helps.

ListView Drag And Drop
How can I do drag and drop with a listview?

Drag+drop Listview
How can I drag at list view item (it should show the icon I specify when it is being dragged) into a richtextbox, then have text go in the rich text box where I drag the listview item to?

Drag And Drop Within Listview
Hi,

I've been using VB6 for a while now, and I've created a couple of programs from it. I've recently started using OLE Drag and Drop to be able to do several things, and all seems well when "copying" an item within the same listview. However, I can't work out how to "move" an item within the same listview. I am able to code it to the point whereby it can detect whether I want to move or copy the item, and whilst I know what to do to copy an item, I do not know how to move an item within a list view.

I hope this makes sense, and if anyone has the answer (which is probably pretty easy), it would be much appriciated.

Tim.

Drag N Drop With ListView
I would like to drag an item from one list to another
I could use a sample and some property settings

Thanks in advance

Thom Boglino
CLC Education
Thom Boglino :)
The Computer Learning Center
727-847-6955
352-683-7255
email@removed
email@removed

*Copyright (c) confidential message. No redistribution.
This message is intended for the use of the addressee
only and may contain confidential or privileged information.
If you have received it in error please notify the sender
and destroy it. You may not use it or copy it to anyone else.

How To Drag And Drop In Listview?
Hi guys,

I'm using VB.NET.

I have a simple application. Just a form, and a ListView.

I have a procedure in the form, it read's all the files in my specificed local drive, and show the files name, size and created day. It works perfectly.

Now, I want add a drag and drop functionality in this application. For example, when I drag a file from my desktop, and drop it in the list box, it will do the following:

  - Add the file's name, size and date into the listview
  - Copy the file to my another specificed path

My problem is simple, I don't know how to do it! :)

Can anyone give me a sample code and let me figure it out, or give me some hints, advice or anything can help.

Thanks in advance :)

Andy

ListView Drag And Drop
how can i drag from a listview and drop in another control, like listbox or flexgrid

Drag Drop With A Listview
i have a listview that has to colums. i want to be able to drag an item and drop the information (from the 2 columns) to another part of the form, like a label.

can anyone help me with this????

gkc

Drag And Drop In ListView
Hi,
I am trying to drag and drop multiple items from a listview on to a treeview node which will ultimately be updated in a corresponding table in the database(just like selecting multiple files in windows explorer and copying to different nodes).My problem is I am not able to drag all the items that I select.When I drag only one Item gets selected,Could somebody help me with this problem or give me some suggestions.Any suggestions will be highly appreciated.
Thanks in Advance
Cheers,
Suvipra

Drag And Drop From Listbox
I have some listboxes on a form and I want to drag values between them. What is the best way to drag from one listbox and drop into one of the others. I'm playing with Mousedown and Mouseup, but I'm not sure that is the solution. How do you know which listbox you are dragging to?

Thanks,
--bnpatten
Richmond,VA

Drag And Drop With Listbox
i have searched the forums but there seems to be a few different ways of simply dragging an item out of list1 and putting it in list2, as any body got any sample code that is the usual way of doing this

thank you.
casey.

Listbox Drag And Drop
Hi !
I want to drag and drop an item fom a list box.
I'm able to drag this item to a text box.
But I when I do so it seems like all the listbox is moving. What can I do if I want to see like i'm moving only one item from this list box ?

Drag N' Drop From Listbox?
is it possible to drag and drop from one listbox to another, with the original one having been populated from my database? if so how would i go about this? thanks!

Drag And Drop From One Listbox To Another
I have two listboxes labeld From and To.

I need to move items from the From box to the To box.

I have four buttons:

cmdTo (moves all selected items from the From box to the To box)
cmdToAll (moves ALL items from the From box to the To box)
cmdBack (moves all selected items from the To box back to the From box)
cmdBackAll (moves ALL items from the To box back to the From box)

All works well and life is good.

Now, however, I'm being asked to add drag and drop functionality. My users want to be able to select items in the From box and Drag them over to the To box and Drop them in.

I don't even use the Drag and Drop functionality built into Windows and I've never built such functionality before.

Can anyone at least get me started?

Drag'n Drop Listbox?
Can anyone tell me if it's possible to drag and drop from a listbox, if it is, can you tell me where to go to find out how to do it?

Listbox Drag And Drop.
Until Arc has finished his listboxx OCX I am stuck with the microsoft offering. SO my problem is this, is there any way to implement re-ordering listbox items by dragging and dropping?

Everso

Listbox Drag &amp; Drop
I am trying to create a form with multiple listboxes from which I can drag & drop from one list to any other list.
I have looked at CTLIST.OCX by DBI Technologies (www.dbi-tech.com/product_info/ctocx.htm)
but it seems this control will only allow drag & drop between 2 list only.

Can someone please help?

Listbox Drag &amp; Drop
i am draging and droping file from desktop and list1 contaning file name and list2 contaning it's location but location says "c:windowsdesktop" but i like to have it's Targetlocation (when you right click on icon from desktop and goto "Shortcut" tab and there will be "Target" that's i am talking about) how do i get that targetlocation. I realy need help for this please help me.

Listbox Drag And Drop
i have 2 listbox how could i make program that when i drag and drop item from desktop list1 get the file name and list2 get complet location (ex:"c:Program filesInternet ExplorerIexplore.exe"). Does any one know how to do this please help me.
Thank you

Drag-Drop From One Listbox To Another
Can you tell me how to implement Drag-Drop between 2 listboxes?

I want to drag an item from one listbox and drop it into another..

Thanx..

Copyright 2005-08 www.BigResource.com, All rights reserved