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

边栏推荐
- QT's excellent articles
- 1089 Insert or Merge 含测试点5
- Altium designer 19.1.18 - hide the fly line of a network
- Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
- 如何进行导电滑环选型
- Significance and requirements of semiconductor particle control
- Good websites need to be read carefully
- STM32 learning method
- Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
- MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
猜你喜欢

Embedded AI intelligent technology liquid particle counter

A complete set of indicators for the 10000 class clean room of electronic semiconductors

研究發現,跨境電商客服系統都有這五點功能!

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

UEFI development learning 5 - simple use of protocol

Reasons for rapid wear of conductive slip rings

Altium designer 19.1.18 - hide the fly line of a network

如何进行导电滑环选型

P3D gauge size problem

About the problem that MySQL connector net cannot be cleared in MySQL
随机推荐
QT's excellent articles
Define in and define out
Linked list (establishment, deletion, insertion and printing of one-way linked list)
Summary of STM32 serial port sending and receiving data methods
Altium designer 19.1.18 - Import frame
Shell脚本基本语法
1089 insert or merge, including test point 5
QT excellent articles
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
Function of static
Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
A simple method to prove 1/t Fourier transform
II Simple NSIS installation package
Temperature sensor DS18B20 principle, with STM32 routine code
如何进行导电滑环选型
Application of ultra pure water particle counter in electronic semiconductors
Extended application of single chip microcomputer-06 independent key
MySql——存储引擎
A series of problems in offline installation of automated test environment (ride)
Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share