Click to See Complete Forum and Search --> : ListView Control - Draging an item


Rajeswari L
August 18th, 1999, 02:50 AM
In VB5.0 i have one listview control which stores all client names.I will select any of the client name from the listview and drag to a picture control.While draging the mouse pointer should show the name of the client.Now i'm not able to display the name of the client while dragging ,as mouse pointer.Please help me.

Please help me.
Raji

August 18th, 1999, 05:08 PM
suggestion:
you may have to specify mouse icon while dragging

askus
August 19th, 1999, 04:56 AM
We can help u in this regard but it might take some time for getting the text (client Name) as the mouse pointer, instead u can display the clients photo as the mouse icon/mouse pointer, pl let us know on this regard. Pl get back at the earliest to the mentioned email address

The Ultimate Solution Providers

Authors

Sriman & Jayaraman

Email : solutionproviders@hotmail.com
solutionproviders@yahoo.com

Hand Phone : +(6) 016 2237147 (Malaysia)

Rajeswari L
August 19th, 1999, 05:52 AM
Thanks for immediate help. I can display photos as mouse pointer. But in this case client's photo is not under consideration (actually we are not having photos of client in the database). Please give me a solution to show the name of the client while dragging.(Like windows explorer - It shows the item name if for one selection not for multiple selection). Please help me in this regard.

Thanks

Rajeswari L
August 19th, 1999, 06:08 AM
Thanks.But i want to display the name of the client as mouse pointer. ie. the selected item in the listview.Pl. help.

Thanks

Chris Eastwood
August 19th, 1999, 06:09 AM
The idea of this forum is to provide help to all the people who read it. Please don't get people to email you privately from the board as there are other readers who may like to see your responses/code.



Chris Eastwood

CodeGuru - the website for developers
http://www.codeguru.com/vb

Chris Eastwood
August 19th, 1999, 06:14 AM
Hi

I've tried this several times and failed in VB - It's very easy to do in VC++ because you get easier access to the messages and methods (CreateDragImage etc).

If you feel up to it, the MFC CodeGuru site has several examples of doing this in C++ eg.

http://www.codeguru.com/listview/drag_complete_row.shtml

take a look at the main ListView section for more info : http://www.codeguru.com/listview/



Chris Eastwood

CodeGuru - the website for developers
http://www.codeguru.com/vb