[VB.NET]Lable绑定Calendar

来源:互联网 发布:mac照片图库打不开 编辑:程序博客网 时间:2024/05/05 22:19
VB.NET源码-156个实用实例哦……<script type="text/javascript"><!--google_ad_client = "pub-8333940862668978";/* 728x90, 创建于 08-11-30 */google_ad_slot = "4485230109";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Lable绑定Calendar
我先建立一个Lable
然后将它的AssociatedControlID属性设置为:
Calendar1(为一新建的Calendar的ID)
就相当于将calendar绑定到lable上
然后有用:
Lable.Text = Calendar1.SelectedDate.Date.toShortString
可是运行的时候在Lable中并不显示Calendar1所选的日期
怎么回事?
那里出错了???
__________________________________________________________________________
用直接赋值的方法解决了
__________________________________________________________________________