Hack Forums
[.NET] [VB.NET] How to use ListView - Proper way - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [VB.NET] How to use ListView - Proper way (/showthread.php?tid=672880)

Pages: Pages 1 2


[VB.NET] How to use ListView - Proper way - pr3fix - Sep 11, 2010

How to use ListView


Hello guys!
Just come up with idea that I could post this, since I needed this for my binder and thought it's not that big deal, but can help some people. Basically, this example will teach you how to use ListView in proper way. You can retrieve some basic information from the selected file, if you need help please post! Also, please leave your feedback & enjoy! 😎

Screenshot:

[img]http://ploader.net/files/3481c5af84a118d51137f99671afe2a3.gif[/img]


Features:
  • Retrieve some basic data from file {Name, Path, Size}

  • Remove file

  • Remove all files

  • See the information of file



Download:
Code
http://www.multiupload.com/AQ64IZAJNH

Password:
Code
Prefix,grammaryThingy



* - Plutonium - Sep 11, 2010

Awesome, I'll definately use this! :D


* - wyterzzz - Sep 11, 2010

thank you pr3fix,this will be useful for me 🤝


* - Modesty - Sep 11, 2010

Challenge for you....try to make it show the associated icon aswell :)

Its fairly easy tbh.


* - pr3fix - Sep 11, 2010

Okay sure PYRO. Give me few minutes and Ill post an example with icon too!


* - ubbelol - Sep 11, 2010

Why oh why do you need to put download links on easy stuff like this? You could've easily just pasted it on pastie or pastebin and much more people would "learn" from it.


* - pr3fix - Sep 11, 2010

(Sep 11, 2010 02:14 PM)UbbeLoL Wrote:  Why oh why do you need to put download links on easy stuff like this? You could've easily just pasted it on pastie or pastebin and much more people would "learn" from it.

I don't know, I just like to post links instead of ... P my stuff.


* - From KSA with lag - Sep 11, 2010

thanks for the source, do you know if you can make each item is different than the one above like for example:

item1: gray
item2: light gray
item3: gray
item4: light gray
...etc


* - xSilent - Sep 11, 2010

(Sep 11, 2010 01:57 PM)P Y R O Wrote:  Challenge for you....try to make it show the associated icon aswell :)

Its fairly easy tbh.

fairly easy? Its easy as hell.

Image List
ExtractAssociatedIcon
Listview1.Items.Add("Example").ImageIndex = ImageList1.Images.Count - 1

3 Things 🤗

Not the full code, but its the idea of it.


* - ubbelol - Sep 11, 2010

(Sep 11, 2010 02:32 PM)From KSA with lag Wrote:  thanks for the source, do you know if you can make each item is different than the one above like for example:

item1: gray
item2: light gray
item3: gray
item4: light gray
...etc

Are you talking about backcolor?

https://hackforums.net/showthread.php?tid=617683


* - Modesty - Sep 11, 2010

(Sep 11, 2010 02:35 PM)UbbeLoL Wrote:  Are you talking about backcolor?

https://hackforums.net/showthread.php?tid=617683

for i = 0 to listview1.items.count -1
if i mod 2 = 0 then
listview1.items.item(i).backcolor = color.grey
end if
next


* - From KSA with lag - Sep 11, 2010

(Sep 11, 2010 02:35 PM)UbbeLoL Wrote:  Are you talking about backcolor?

https://hackforums.net/showthread.php?tid=617683
yeah like that :3

-bananananananananananana apple


* - nathan72389 - Sep 11, 2010

(Sep 11, 2010 02:35 PM)xSilent Wrote:  fairly easy? Its easy as hell.

Image List
ExtractAssociatedIcon
Listview1.Items.Add("Example").ImageIndex = ImageList1.Images.Count - 1

3 Things 🤗

Not the full code, but its the idea of it.

indeed its super easy.... just have a look at my advanced binder...

[img]http://i51.[censored].com/2wn2y6t.jpg[/img]

^^^ yeah... show off time!


* - pr3fix - Sep 11, 2010

And yeah, this source is extremely easy.

I shared it because I coded it for my binder and thought I could share something since I didn't had time to post anything or code, nothing but for my crypter.


* - Invicious - Sep 11, 2010

This is amazing,I will be using this in the future