Example #1
0
        private void FocusForm2(string userName, int userId)
        {
            UserForm2 form2 = new UserForm2(userName, userId);

            form2.Visible = true;
            form2.Focus();
        }
Example #2
0
 public AddNameForm(string addFilePath, string fileName, int userId, UserForm2 f)
 {
     this.addFilePath = addFilePath;
     this.userId      = userId;
     mainForm         = f;
     InitializeComponent();
     textBoxNameNewFile.Text = fileName;
 }