Foxtable(狐表)用户栏目专家坐堂 → 求窗口1标签6代码


  共有10480人关注过本帖树形打印复制链接

主题:求窗口1标签6代码

帅哥哟,离线,有人找我吗?
czy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33951 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2010/10/20 17:32:00 [显示全部帖子]

两个日期控件ValueChanged事件代码


Dim d1 As Date = e.Form.Controls("DateTimePicker1").Value
Dim d2 As Date = e.Form.Controls("DateTimePicker2").Value
If d1 = Nothing Or d2 = Nothing Then
    e.Form.Controls("Label6").Text = ""
Else
    e.Form.Controls("Label6").Text = DateDiff("yyyy",d2,d1)
End If


 回到顶部