I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
private void timerMain_Tick(System.Object sender, System.EventArgs e) { // When the timer is running, update the displayed timer // value for each tick event.
if (stopWatch.IsRunning) { // Get the elapsed time as a TimeSpan value. TimeSpan ts = stopWatch.Elapsed;
// Format and display the TimeSpan value. labelTime.Text = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds/10);
// If the user has just clicked the "Lap" button, // then capture the current time for the lap time.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Diagnostics;
namespace StopUr { public partial class Form1 : Form { Stopwatch stopwatch = new Stopwatch(); Timer timer = new Timer();
public Form1() { InitializeComponent();
//100 milisekunder update... ikke sæt den for lavt timer.Interval = 100; timer.Tick += new EventHandler(timer_Tick); }
void timer_Tick(object sender, EventArgs e) { //Sæt det til din labels tekst Text = stopwatch.Elapsed.ToString(); }
takker for hjælpen mysitesolution :) Det passede præcis ind i min kodeopbygning :)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.