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

边栏推荐
- Embedded composition and route
- About the problem that MySQL connector net cannot be cleared in MySQL
- Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
- Baiwen 7-day smart home learning experience of Internet of things
- Altium Designer 19.1.18 - 导入板框
- Rename directory in C [closed] - renaming a directory in C [closed]
- Embedded AI intelligent technology liquid particle counter
- "Source code interpretation" famous programmer TJ's only library
- Record the opening ceremony of Beijing Winter Olympics with display equipment
- Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

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

Win10 shortcut key

Embedded AI intelligent technology liquid particle counter

如何进行导电滑环选型

Package ‘*****‘ has no installation candidate

SQL JOINS

软件设计师:03-数据库系统

Improve lighting C program

找不到实时聊天软件?给你推荐电商企业都在用的!

Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
随机推荐
Record the torch encountered by win10 cuda. is_ False problem in available()
Create inf module in AMI code
Altium Designer 19.1.18 - 清除测量距离产生的信息
MySql——存储引擎
研究发现,跨境电商客服系统都有这五点功能!
Shell script basic syntax
UEFI development learning series
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
Nombre - 1. Création de tableaux
Calibre garbled
Altium designer 19.1.18 - clear information generated by measuring distance
研究發現,跨境電商客服系統都有這五點功能!
Let me teach you how to develop a graphic editor
The printer encountered an abnormal configuration problem 0x8007007e (win10)
TCP and UDP
通过sql语句统计特定字段出现次数并排序
Application of ultra pure water particle counter in electronic semiconductors
Logistic regression: the most basic neural network
A complete set of indicators for the 10000 class clean room of electronic semiconductors
GPIO circuit principle of stm32