vb 状态栏
我知道用statusBar控件,主要是:给个代码,让状态栏显示你此刻所干的任务.如你鼠标放在新建文件上,状态栏就会显示新建,当你鼠标点了新建任务时,状态栏显示就绪....
我知道用statusBar控件,主要是:
给个代码,让状态栏显示你此刻所干的任务.如你鼠标放在新建文件上,状态栏就会显示新建,当你鼠标点了新建任务时,状态栏显示就绪. 展开
给个代码,让状态栏显示你此刻所干的任务.如你鼠标放在新建文件上,状态栏就会显示新建,当你鼠标点了新建任务时,状态栏显示就绪. 展开
展开全部
难道是这样?友情帮顶
Dim bCmdClicked As Boolean
Private Sub cmdNew_Click()
'Task goes here
Me.StatusBar1.Panels(1).Text = "Task finished"
bCmdClicked = True
End Sub
Private Sub cmdNew_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Not bCmdClicked Then
Me.StatusBar1.Panels(1).Text = "New Task"
End If
End Sub
Dim bCmdClicked As Boolean
Private Sub cmdNew_Click()
'Task goes here
Me.StatusBar1.Panels(1).Text = "Task finished"
bCmdClicked = True
End Sub
Private Sub cmdNew_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Not bCmdClicked Then
Me.StatusBar1.Panels(1).Text = "New Task"
End If
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询