当前位置:网站首页>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
边栏推荐
- Shell script basic syntax
- Record the opening ceremony of Beijing Winter Olympics with display equipment
- Scm-05 basis of independent keyboard
- [professional literacy] specific direction of analog integrated circuits
- Day08 ternary operator extension operator character connector symbol priority
- UEFI development learning 2 - running ovmf in QEMU
- Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
- How to select conductive slip ring
- NSIS finds out whether the file exists and sets the installation path
猜你喜欢
Opendrive ramp
Application of ultra pure water particle counter in electronic semiconductors
如何进行导电滑环选型
找不到实时聊天软件?给你推荐电商企业都在用的!
Software designer: 03 database system
Realization of binary relation of discrete mathematics with C language and its properties
1-stm32 operation environment construction
The research found that the cross-border e-commerce customer service system has these five functions!
Logistic regression: the most basic neural network
Extended application of single chip microcomputer-06 independent key
随机推荐
生产中影响滑环质量的因素
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
STM32 learning method
Detailed explanation of pragma usage
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Scm-05 basis of independent keyboard
Interview catalogue
About yolov3, conduct map test directly
Linked list (establishment, deletion, insertion and printing of one-way linked list)
Create inf module in AMI code
Makefile application
MySql——存储引擎
Day06 class variables instance variables local variables constant variables naming conventions
Markdown tips
UEFI development learning series
Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share
Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
.NET服务治理之限流中间件-FireflySoft.RateLimit
Openxlsx field reading problem
[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen