Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all,

In my project I used two listview controls on the same page.
In first list view I have a select button .

What I want is when I press the select button in first listview then the second list view appears on run time other wise do not show the second listview.

Thanks and Regards
subiya
Posted
Updated 29-Mar-11 0:26am
v2

1 solution

In the click event of your Button, do this :

VB
Dim listView2 As New ListView()
pnl.Controls.Add(listView2)
'where pnl is the panel where you want to add the second ListView


You can also specify the location, size and other parameters for listView2.

Hope it helped!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900