Пример #1
0
 private void labelX_predmet_DoubleClick(object sender, System.EventArgs e)
 {
     var lbl = (sender as LabelX);
     if (lbl != null)
     {
         _lastLabel = lbl;
         _lastTbx = new TextBoxX { Size = new Size(lbl.Size.Width - 5, lbl.Size.Height), Location = new Point(lbl.Location.X+4, lbl.Location.Y + 4), Text = lbl.Text, BackColor = Color.FromArgb(255,65,66,66)};
         _lastTbx.LostFocus += tbx_LostFocus;
         _lastTbx.KeyDown += _lastTbx_KeyDown;
         Controls.Add(_lastTbx);
         _lastTbx.BringToFront();
         _lastTbx.Focus();
     }
 }