复选框代码

扫码查看
本文介绍了复选框代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在visual basic中编写代码,允许用户选择显示或隐藏标签而不使用if语句?

解决方案




How do i write codes in visual basic for check boxes that allow the user to choose to display or hide the the lables without using the if statement?

解决方案




hm.. okay so
chkTitle.Value = 1
lblTitle.Visible = False
this works too but My problem is that once i checked it and the Title dissapears I cannot uncheck it... and I dont know how should I put both code together... tried with
chkTitle.Value = 1
lblTitle.Visible = False
chkTitle.Value = 0
lblTitle.Visible = True
but doesnt work..Thanks for the help :)


这篇关于复选框代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 23:12
查看更多