Ejemplo n.º 1
0
Archivo: fmMain.cs Proyecto: tanzw/six
        public fmMain()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            BuildColums();
            fmdetail = new Frm.fmOrderDetails();
            fmdetail.StartPosition = FormStartPosition.Manual;

            fmdetail.MinimizeBox = false;
            fmdetail.MaximizeBox = false;
        }
Ejemplo n.º 2
0
Archivo: fmMain.cs Proyecto: tanzw/six
 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();
 }