简体   繁体   中英

Write new text to a textbox when clicking a button?

So I am making a simple stopwatch using the Windows Forms and I have a functioning stopwatch that I have created. I want to write the current time on the watch to a textbox with the number/place in the race before it.

Design:

Stopwatch

Start Stop Finish

Textbox

So whenever I press "Finish" I want the textbox to display the number that this is/placement as well as the time at finish. So something like:

  1. 2:15.4
  2. 2:18.5
  3. 2:24.5

etc.

Is this possible to do for someone who does only have a basic understanding of C#?

当然,它会是这样的:

NameOfYourTextBox.Text = "some string here";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM