当前位置:网站首页>C WinForm [display real-time time in the status bar] - practical exercise 1
C WinForm [display real-time time in the status bar] - practical exercise 1
2022-07-05 07:55:00 【BoomBiuBiu】
1、 Drag two controls from the toolbox to the form ----timer Controls and statusStrip Control
2、 Select the properties of the status bar ---- Click on Items---- Add item ---- hold Text Display date and time instead
3、 choice Timer attribute , hold Enabled Change it to 【True】,Interval Change it to 【1000】
4、 Click event ---- stay Tick Press enter
5、 Enter the code
private void timer1_Tick(object sender, EventArgs e)
{
toolStripStatusLabel7.Text = System.DateTime.Now.ToString();
}
6、 Results show
边栏推荐
- 如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
- Cadence learning records
- Embedded composition and route
- L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
- C language enhancement -- pointer
- Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
- Extended application of single chip microcomputer-06 independent key
- Day09 how to create packages import package naming conventions Alibaba Development Manual
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- Some errors in configuring the environment
猜你喜欢
Altium Designer 19.1.18 - 更改铺铜的透明度
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
Train your dataset with yolov4
About the problem that MySQL connector net cannot be cleared in MySQL
Consul安装
Numpy——1.數組的創建
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
Altium designer 19.1.18 - change the transparency of copper laying
mysql 盲注常见函数
UEFI development learning 3 - create UEFI program
随机推荐
Global and Chinese market of rammers 2022-2028: Research Report on technology, participants, trends, market size and share
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
[professional literacy] core conferences and periodicals in the field of integrated circuits
Factors affecting the quality of slip rings in production
C language enhancement -- pointer
How to excavate and research ideas from the paper
About the problem that MySQL connector net cannot be cleared in MySQL
·Practical website·
2021-10-28
MySQL - storage engine
Altium Designer 19.1.18 - 导入板框
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
The sublime version that XP can run is 3114
万字详解八大排序 必读(代码+动图演示)
[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen
Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
1089 insert or merge, including test point 5
Train your dataset with yolov4
How to realize audit trail in particle counter software
Altium designer 19.1.18 - clear information generated by measuring distance