private void btnAttachment_Click(object sender, System.EventArgs e) { FrmAttachment dlg = new FrmAttachment(); dlg.UserId = 1; dlg.ShowDialog(); }