Foxtable(狐表)用户栏目专家坐堂 → 如何清空VAR变量


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

主题:如何清空VAR变量

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107670 积分:547671 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/1/7 22:01:00 [显示全部帖子]

使用到这个变量的事件有哪些?都把代码贴出来

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107670 积分:547671 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/1/7 23:05:00 [显示全部帖子]

如果只是为了控制按钮颜色,完全不需要使用变量

MouseEnter
If Typeof e.sender Is WinForm.Button Then
    e.sender.backcolor = color.Orange
    e.sender.ForeColor = Color.white
End If

MouseLeave

If Typeof e.sender Is WinForm.Button Then

    e.sender.backcolor = Color.Khaki

    e.sender.Forecolor = Color.black

End If


至于颜色变暗完全是眼睛的视觉偏差


 回到顶部