Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: sPlOrYgOn on July 26, 2003, 09:35 PM

Title: ListView Help
Post by: sPlOrYgOn on July 26, 2003, 09:35 PM
I was wondering :-\ how to  :P put stuff in  :'( other columns using  :o listview  ;D
Title: Re:ListView Help
Post by: Hazard on July 26, 2003, 09:49 PM
You could start by using "Search" and seeing if this question has already been answered. Then you could not put all those smilies in your posts. You seem to have followed a few of the points mentioned in the "Tips For Getting Help Here" thread.

!~!HaZaRD!~!
Title: Re:ListView Help
Post by: CrAz3D on July 26, 2003, 10:18 PM
maybe add columns & then ListView1.ListItems.Add , , , , ....... (use commas to place w/e where ever)
Title: Re:ListView Help
Post by: BoBBaGe on August 16, 2003, 09:12 PM
umm making columns right click on the listview and go to properties then go to column headers and make the headers?

thats just making columns, im pretty new to vb dont know alot of the other stuff
Title: Re:ListView Help
Post by: Camel on August 17, 2003, 12:34 AM
Look at the date on the post BoBBaGe!
Title: Re:ListView Help
Post by: BoBBaGe on August 17, 2003, 05:24 PM
wat if i dont wanna, YOU CANT MAKE ME
Title: Re:ListView Help
Post by: warz on August 17, 2003, 09:08 PM
Lets say you have 2 rows, and several columns in your listview, and want to set some text in each of them. No worries, it's simple.

Sets the first cell on the first row to something.

               .ListItems(1).Text = varAccount(0)


Sets the second cell on the first row to something.

               .ListItems(1).ListSubItems(1).Text = "Initializing..."


Third cell...

               .ListItems(1).ListSubItems(2).Text = "0-0-0"


...and so on. How about the second row?
               
               .ListItems(2).Text = varAccount(1)


Simple enough, right? That was pulled from http://tks.slacktech.com/source/vb/SoupBotWinBot.zip .