What is wrong in this code?
private void tree_KeyDown(ob ject sender, System.Windows. Forms.KeyEventA rgs
e)
{
if (e.KeyCode == Keys.Enter )
{
ConnString = "workstatio n id=HRV;packet size=4096;integ rated
security=SSPI;d ata source=HRV;pers ist security info=False;init ial
catalog=DVD Kolekcija";
bDb = new Db(ConnString);
grid.Refresh();
grid.Table = bDb.datasetDVD. Tables ["DVD"];
}
}
I press ENTER when I'm on treeview control but nothing happens!
Hrcko
private void tree_KeyDown(ob ject sender, System.Windows. Forms.KeyEventA rgs
e)
{
if (e.KeyCode == Keys.Enter )
{
ConnString = "workstatio n id=HRV;packet size=4096;integ rated
security=SSPI;d ata source=HRV;pers ist security info=False;init ial
catalog=DVD Kolekcija";
bDb = new Db(ConnString);
grid.Refresh();
grid.Table = bDb.datasetDVD. Tables ["DVD"];
}
}
I press ENTER when I'm on treeview control but nothing happens!
Hrcko
Comment