Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
strTime = Now
StatusBar1.Text = "当前用户:" + strUser + "当前时间:" + strTime
End Sub
正确的应该怎么做?
...全文
524打赏收藏
状态栏的简单问题
想在窗口的状态栏设置两种文本: 当前用户名,左对齐; 当前日期时间,右对齐; 现在就加了一个StatusBar1控件 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick strTime = Now StatusBar1.Text = "当前用户:" + strUser + "当前时间:" + strTime End Sub 正确的应该怎么做?