Hi Everyone

I have a listbox that calculates interest rates
the code is as follows:-

dim amount as double = val(textbox2.text)
dim counter as integer
for counter = 1 to 10
listbox1.items.add(counter & " % " & formatcurrency((amount*counter)/100))
next counter

This works great but i would like to use a listview with two columns. 1 for the counter percentage .2 for the amount calculation.

I have tried but am getting stuck with the subitems.

Many thanks

Mikey

Recommended Answers

All 2 Replies

What you tried so far?

Hi Thanks for you reply its not much but i have the following:-

Dim Data as new ListviewItem
for counter = 1 to 10
Data.subitems.add(counter)
next
listview1.items.addrange(new Listviewitem() {Data})

mikey

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.