如何在vb.net中隐藏列表视图 [英] how to hide the list view in vb.net

查看:100
本文介绍了如何在vb.net中隐藏列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我的项目中,我在同一页面上使用了两个listview控件.
在第一个列表视图中,我有一个选择按钮.

我想要的是,当我在第一个列表视图中按下选择按钮,然后第二个列表视图在运行时出现时,否则不显示第二个列表视图.

谢谢与问候
subiya

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

推荐答案

在Button的click事件中,请执行以下操作:

In the click event of your Button, do this :

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



您还可以为listView2指定位置,大小和其他参数.

希望对您有所帮助!



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

Hope it helped!


这篇关于如何在vb.net中隐藏列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆