Exemple #1
0
        private void ImportSelection_Load(object sender, EventArgs e)
        {
            Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);

            ComboImportFrom.SelectedIndex = 0;
            ButtonOK.Select();
        }
Exemple #2
0
 public void SetOKButton(bool s)
 {
     if (!result.InvokeRequired)
     {
         btOK.Enabled = s;
         if (btOK.Enabled)
         {
             btOK.Select();
             btOK.MyClick();
         }
     }
     else //We are on a non GUI thread.
     {
         SetOKButtonDelegate ssbtDel = new SetOKButtonDelegate(SetOKButton);
         btOK.Invoke(ssbtDel, new object[] { s });
     }
 }