Steps to reproduce issue:
1. Run code.
2. Enter some data to grid
3. Click other form caption
4. Click original form caption
5. Enter some characters
Observed: entered characters are ignored
Expected: entered characters must appear in textbox which was last active
How to fix ?
Andrus.
using System.Windows. Forms;
public class Test
{
static void Main()
{
Application.Run (new MainForm());
}
}
class MainForm : Form
{
public MainForm()
{
WindowState = FormWindowState .Maximized;
IsMdiContainer = true;
Form frm = new Childform();
frm.MdiParent = this;
frm.Show();
Form frm2 = new Childform();
frm2.MdiParent = this;
frm2.Show();
frm2.Left = 2000;
}
}
class Childform : Form
{
public Childform()
{
var grid = new DataGridView();
grid.Columns.Ad d(new DataGridViewTex tBoxColumn());
grid.EditMode = DataGridViewEdi tMode.EditOnEnt er;
Controls.Add(gr id);
}
}