I want to put a stopwatch in the window. by activities invoke code
I try put timer in activities but can’t set timer in invoke code
Ex. Code in activity
System.Windows.Forms.Application.Exit()
Dim Hight As Integer = 100
Dim dt As DateTime = DateTime.Now
lblTimer = New System.Windows.Forms.Timer()
lblTimer.Enabled = True
lblTimer.Interval = 100
lblFname = New System.Windows.Forms.Label()
lblFname.AutoSize = True
lblFname.ForeColor = System.Drawing.Color.White
lblFname.Location = New System.Drawing.Point(24, CInt(Hight/3))
lblFname.Name = "lblFname"
lblFname.TabIndex = 0
lblFname.Text = "Uipath robot process..."
Dim frm As New System.Windows.forms.form
Dim bar As ProgressBar = New ProgressBar()
bar.Location = New System.Drawing.Point(10, CInt(Hight/3)*2)
bar.Name = "progressBar1"
bar.MarqueeAnimationSpeed = 25
bar.Size = New System.Drawing.Size(280, 5)
bar.TabIndex = 0
bar.Style = ProgressBarStyle.Marquee
bar.Minimum = 0
bar.Maximum = 100
form= New System.Windows.forms.form
form.Text="Robot Process"
form.TopMost = True
form.AutoSize = False
form.FormBorderStyle = 0
form.BackColor = System.Drawing.SystemColors.Highlight
form.ClientSize = New System.Drawing.Size(300, Hight)
form.StartPosition = FormStartPosition.CenterScreen
form.Controls.Add(lblFname)
form.Controls.Add(bar)
form.Name = "Form1"
form.Show()