Пример #1
0
        public fmMain()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            BuildColums();
            fmdetail = new Frm.fmOrderDetails();
            fmdetail.StartPosition = FormStartPosition.Manual;

            fmdetail.MinimizeBox = false;
            fmdetail.MaximizeBox = false;
        }
Пример #2
0
 private void dataGridView1_SelectionChanged(object sender, EventArgs e)
 {
     if (fmdetail.IsDisposed)
     {
         fmdetail = new Frm.fmOrderDetails();
         fmdetail.StartPosition = FormStartPosition.Manual;
     }
     fmdetail.SetData(dataGridView1.CurrentRow.Cells[0].Value.ToString());
     fmdetail.Location = new Point(this.Location.X + 936, this.Location.Y + 105);
     fmdetail.Show();
     fmdetail.TopLevel = true;
     fmdetail.TopMost  = true;
     this.Activate();
 }