private void DialogAutoupdate_Load(object sender, EventArgs e) { lblCV.Text = Application.ProductVersion; lblNV.Text = Globals.strNewAUVersion; CheckForIllegalCrossThreadCalls = false; tmrTimeout = new System.Timers.Timer(1000); // Dim tmpTop As Integer = objMain.Top + (objMain.Height \ 2) // Dim tmpLeft As Integer = objMain.Left + (objMain.Width \ 2) // Me.Top = tmpTop - (Me.Height \ 2) // Me.Left = tmpLeft - (Me.Width \ 2) tmrTimeout.Elapsed += UpdateTimeout; tmrTimeout.AutoReset = true; lblTR.Text = "30"; BtnUpdate.Focus(); Activate(); TopLevel = true; // // Don't timeout the UI for now // // tmrTimeout.Start() }
public YesNoDialog() { InitializeComponent(); BtnUpdate.Focus(); }