public FormClassNoTimeTable(string formtxt, C_ClassNoTimeTable c, C_ClassNoTimeTable adact,Form a_mdi_p)
            : base()
        {
            InitializeComponent();

            foreach (Object tb in this.tableLayoutPanel1.Controls)
            {
                if (tb is TextBox)
                {
                    TextBox aTextBox = (TextBox)tb;
                    aTextBox.ReadOnly = true;
                    aTextBox.MouseWheel += mWheel_click;
                    aTextBox.AllowDrop = true;
                    aTextBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.TextBox_DragDrop);
                    aTextBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.TextBox_DragEnter);
                    aTextBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TextBox_MouseDown);
                    aTextBox.KeyPress += txtInput_KeyPress;
                }
            }
            this.Text = formtxt;
            classno= int.Parse(this.Text.Split('.')[0]);
            contr = c;
            dact_dc = adact;
            dact = new FormClassNoTimeTableDoubleClick_Action(formtxt+"Subject List",dact_dc);
        }
 public FormClassNoTimeTableDoubleClick_Action(string txt, C_ClassNoTimeTable aContr)
     : base()
 {
     InitializeComponent();
     contr = aContr;
     this.Text = txt;
     a_key = int.Parse((txt.Split('.')[0]));
     foreach (Object tb in this.tableLayoutPanel1.Controls)
     {
         if (tb is TextBox)
         {
             TextBox aTextBox = (TextBox)tb;
             aTextBox.ReadOnly = true;
             aTextBox.MouseClick += gridmouseClick;
             aTextBox.KeyPress += txtInput_KeyPress;
             //aTextBox.MouseWheel += mWheel_click;
             //       aTextBox.AllowDrop = true;
             //       aTextBox.DragDrop += new System.Windows.Forms.DragEventHandler(this.TextBox_DragDrop);
             //       aTextBox.DragEnter += new System.Windows.Forms.DragEventHandler(this.TextBox_DragEnter);
          }
     }
 }