473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Listview help

Are there any good tutorials out on the net that explains the listview
control with great detail? Things like drag-drop features, icon additions,
etc...?
Nov 20 '05 #1
3 1352
BTW, what I'm trying to do is figure out how I can drag items from file
folders or the desktop and have them added to the listview (without actually
copying or removing them from the original spot) and appear in a details
view like manner (with icon). Thanks for any help.

"OpticTygre" <op********@adelphia.net> wrote in message
news:5_********************@adelphia.com...
Are there any good tutorials out on the net that explains the listview
control with great detail? Things like drag-drop features, icon additions, etc...?

Nov 20 '05 #2
Ok, I've gotten a simple solution:

"OpticTygre" <op********@adelphia.net> wrote in message
news:YY********************@adelphia.com...
BTW, what I'm trying to do is figure out how I can drag items from file
folders or the desktop and have them added to the listview (without actually copying or removing them from the original spot) and appear in a details
view like manner (with icon). Thanks for any help.

"OpticTygre" <op********@adelphia.net> wrote in message
news:5_********************@adelphia.com...
Are there any good tutorials out on the net that explains the listview
control with great detail? Things like drag-drop features, icon

additions,
etc...?


Nov 20 '05 #3
Disreguard last post...hit send too quickly. :o)

Ok, I have a simple solution:

Private Sub lstUploads_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles lstUploads.DragDrop
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
Dim FilesToDrop() As String
Dim i As Integer

FilesToDrop = e.Data.GetData(DataFormats.FileDrop)
For i = 0 To FilesToDrop.Length - 1
lstUploads.Items.Add(FilesToDrop(i))
Next
End If
End Sub

Private Sub lstUploads_DragEnter(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles lstUploads.DragEnter
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.All
End If
End Sub

With this, I can drag/drop from anywhere. The problem is, where could I get
the other information involved with those files? IE, Icon properties to add
beside the name, filesize, datemodified, and all that jazzy information?
Does that require a super huge procedure, or could I just do it through
properties of properties of objects, and if so, how? For example, if I
wanted to add the file Test.txt to my listview by dragging it from the
desktop, I don't want just the path. I want a nice pretty txt icon beside
the filename, with size, type, and modified all in a row, just like windows
explorer in detail view mode. Any ideas?

Thanks again
-Jason

"OpticTygre" <op********@adelphia.net> wrote in message
news:YY********************@adelphia.com...
BTW, what I'm trying to do is figure out how I can drag items from file
folders or the desktop and have them added to the listview (without actually copying or removing them from the original spot) and appear in a details
view like manner (with icon). Thanks for any help.

"OpticTygre" <op********@adelphia.net> wrote in message
news:5_********************@adelphia.com...
Are there any good tutorials out on the net that explains the listview
control with great detail? Things like drag-drop features, icon

additions,
etc...?


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
3
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data,...
2
by: MikeY | last post by:
Hi all, I am coding window forms in C#. My problem is this: I have created a "Check ListView" or a 'ListView' with checkbox's. I have populated the it with my files from my folders, mps, txt,...
2
by: Ken | last post by:
Hi all, Please help! I'm attempting to apply tooltips to each individual item in VB.Net's Listview control. In VB6 it was easy - you just did the following (assumes "myListView" is the name of...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
2
by: Ben H | last post by:
Hello all I'm using a listview in my app but I want to scroll the listview programatically as I hate the look of the standard scrollbar. So, the listview is scrolled programatically using...
1
by: samoore33 | last post by:
I found this code on MSDN, and it works great. It creates a ListView dynamically and add items to it and all. It is great. I have changed a few of the column names to suit me. Dim listView1 As...
12
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.