public Form1() { //enable the keys events this.KeyPreview = true; InitializeComponent(); //update version number in the Form Label Version version = Assembly.GetEntryAssembly().GetName().Version; this.Text = "My Robot " + version.ToString(); this.MouseWheel += new MouseEventHandler(panel1_MouseWheel); cGL = new cOGL(panel1); //initialize timers timer1.Enabled = true; timer2.Enabled = false; timer3.Enabled = false; timer4.Enabled = false; timer3.Interval = 1; timer4.Interval = 1; //apply the bars values as cGL.ScrollValue[..] properties hScrollBarScroll(hScrollBar2, null); hScrollBarScroll(hScrollBar3, null); hScrollBarScroll(hScrollBar8, null); hScrollBarScroll(hScrollBar11, null); hScrollBarScroll(hScrollBar12, null); hScrollBarScroll(hScrollBar13, null); }
public Form1() { InitializeComponent(); cGL = new cOGL(panel1); //apply the bars values as cGL.ScrollValue[..] properties //!!! hScrollBarScroll(hScrollBar1, null); hScrollBarScroll(hScrollBar2, null); hScrollBarScroll(hScrollBar3, null); hScrollBarScroll(hScrollBar4, null); hScrollBarScroll(hScrollBar5, null); hScrollBarScroll(hScrollBar6, null); hScrollBarScroll(hScrollBar7, null); hScrollBarScroll(hScrollBar8, null); hScrollBarScroll(hScrollBar9, null); }