H
Hrvoje Voda
I can't get to work treeview keypress event.
I press Enter and nothing happens.
This is a code:
private void treeKeyPress(object sender, KeyPressEventArgs e)
{ if (e.KeyChar == (char)13)
{
ConnString = "workstation id=HRVOJE;packet size=4096;integrated
security=SSPI;data +
source=HRVOJE;persist security info=False;initial catalog=DVD";
bDb = new Db(ConnString);
grid.Refresh();
string Film;
Film = (treeView.SelectedNode.Text);
grid.Table = bDb.datasetDVD.Tables [Film];
}
}
Hrcko
I press Enter and nothing happens.
This is a code:
private void treeKeyPress(object sender, KeyPressEventArgs e)
{ if (e.KeyChar == (char)13)
{
ConnString = "workstation id=HRVOJE;packet size=4096;integrated
security=SSPI;data +
source=HRVOJE;persist security info=False;initial catalog=DVD";
bDb = new Db(ConnString);
grid.Refresh();
string Film;
Film = (treeView.SelectedNode.Text);
grid.Table = bDb.datasetDVD.Tables [Film];
}
}
Hrcko