Up | Example 01 - ComboBox | Example 02 - ListBox | Example 03 - Labels class derived from Winforms.Panel | Example 04 - Button with Resize Event | Example 05 - CheckBox | Example 06 - GroupBox | Example 07 - Modeless Status Dialog | Example 08 -Timer | Example 09 -TextBox | Example 10 - Custom Button Class | Example 11 - Product Selection ComboBox | Example 12 - Simple ListView

 

  

 
Example 08 -Timer
The following defines the creation of a WinForms.Timer
 import CLR
 import CLR.System.Windows.Forms as WinForms
 self.timer = WinForms.Timer()
 self.timer.Tick += self.TimerTickHandler
 self.timer.Interval = 1000
 self.timer.Enabled = 1
 def TimerTickHandler(self, sender, args):
 # Handles timer tick
   if self.stopWatch.Running:
     self.textBox.Text = str(int(self.stopWatch.ElapsedSeconds))
 
 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.