B
Brofalad
Hi all,
I wonder if it is possible to inhibit the key down event from changing
the row in a listview. I have given the key down event a different
meaning and I don’t want the row to be changed if a listview is in
focus.
Is this possible?
Brofalad
private void DlgNewAvd_KeyDown(object sender, KeyEventArgs e)
{
if ((e.KeyCode == System.Windows.Forms.Keys.Up))
{
// Rocker Up
// Up
}
if ((e.KeyCode == System.Windows.Forms.Keys.Down))
{
// My custom code. And I don't want the selected row to
be changes if a ListView has focus
}
....
....
}
I wonder if it is possible to inhibit the key down event from changing
the row in a listview. I have given the key down event a different
meaning and I don’t want the row to be changed if a listview is in
focus.
Is this possible?
Brofalad
private void DlgNewAvd_KeyDown(object sender, KeyEventArgs e)
{
if ((e.KeyCode == System.Windows.Forms.Keys.Up))
{
// Rocker Up
// Up
}
if ((e.KeyCode == System.Windows.Forms.Keys.Down))
{
// My custom code. And I don't want the selected row to
be changes if a ListView has focus
}
....
....
}