BlueGhost79
Programmer
I have a form that when it loads everything is fine.
When ever I press the enter key they FormClose function is called. I am not calling Close() anywhere. I know it has something to do with the focus becuase if I click on a button then press enter everything is ok, but if I dont click on anything or click on a listview and then press enter the form closes. It does not even call the onkey down event of the listview control that currently has focus, just goes straight to the form close().
any ideas?
When ever I press the enter key they FormClose function is called. I am not calling Close() anywhere. I know it has something to do with the focus becuase if I click on a button then press enter everything is ok, but if I dont click on anything or click on a listview and then press enter the form closes. It does not even call the onkey down event of the listview control that currently has focus, just goes straight to the form close().
any ideas?