当前位置:网站首页>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

边栏推荐
- Altium Designer 19.1.18 - 隐藏某一个网络的飞线
- UEFI development learning 2 - running ovmf in QEMU
- MySQL - storage engine
- Leetcode solution - number of islands
- Train your dataset with yolov4
- Using C language to realize IIC driver in STM32 development
- Could NOT find XXX (missing: XXX_LIBRARY XXX_DIR)
- How to realize audit trail in particle counter software
- Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
- Nombre - 1. Création de tableaux
猜你喜欢

Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world

Nombre - 1. Création de tableaux

How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?

Numpy——1.数组的创建

MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
![[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen](/img/43/7f8becc09c5ce7fe401bed140608f3.jpg)
[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen

II Simple NSIS installation package

如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?

Shell script basic syntax

Ads usage skills
随机推荐
QT excellent articles
msys2
Train your dataset with yolov4
GPIO circuit principle of stm32
Ads learning record (lna_atf54143)
Altium designer 19.1.18 - change the transparency of copper laying
QT's excellent articles
Gradle composite construction
[popular science] some interesting things that I don't know whether they are useful or not
Some errors in configuring the environment
Opendrive record
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
Altium Designer 19.1.18 - 更改铺铜的透明度
Altium designer 19.1.18 - clear information generated by measuring distance
Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
Nombre - 1. Création de tableaux
Improve lighting C program
Query the table name used by kettle in Oracle
. Net service governance flow limiting middleware -fireflysoft RateLimit
Logistic regression: the most basic neural network