Datagrid form steals focus
-
I have an app with a few forms all of which can be opened at the same time. From the starting form a blocking socket class is initialised in a new thread, and this class raises different data received events handled by the different forms depending on the data received. The problem is one form adds the data to a datagrid and whenever this event is consumed this form comes to the front. this does not happen with the other forms. So the question is why does this happen and how can I stop it?
-
I have an app with a few forms all of which can be opened at the same time. From the starting form a blocking socket class is initialised in a new thread, and this class raises different data received events handled by the different forms depending on the data received. The problem is one form adds the data to a datagrid and whenever this event is consumed this form comes to the front. this does not happen with the other forms. So the question is why does this happen and how can I stop it?
hi, You can check the property TopMost property of you form. Check it's status.;) ************************** S r e e j i t h N a i r **************************
-
hi, You can check the property TopMost property of you form. Check it's status.;) ************************** S r e e j i t h N a i r **************************
Top most is set to false, and I don't change it in code. But thanks for the suggestion, it rules something out.