c# - Simple UI issue in winforms -


I have a simple winforms application, on display it shows a child's window every time if I have a browser window Max), or open any other window normally, then this app goes back with its child, is only in the taskbar, which is in the taskbar, only the hair window is visible, but not in the application window view Come on. I want to know how when I choose it from the taskbar, how to show both windows.

Childwindows are also a winform, whose upper property is set as true, nothing is new except (just click on a button or call in the grid I create an object for the form and Show that it shows properties to show)

  AlertMsgWindow _alertMsg; Try Zero Data GridViewAlterMouseDoubleClick (Object Sender, MouseInventErgus E) {Try String.InsnLLty (This Datagrid Vivelates.JetValues ​​(0, This Data Grid Vivelatts.)) {This.dataGridViewAlerts.setCellImage (0, this.dataGridViewAlerts.SelectedRow, "NewsIconRead"); If (_alertMsg == tap || _alertMsg.IsDisposed) {if (_alertMsg! = Null) {_alertMsg.onDeleteMessageRequest - = New deleted message (_alertMsg_onDeleteMessageRequest); _alertMsg.Dispose (); } _alertMsg = New AlertMsgWindow (); _alertMsg.onDeleteMessageRequest + = New Deleted Message (_alertMsg_onDeleteMessageRequest); } _alertMsg.FillDetails (warning details [id compilation [this.dataGridViewAlerts.SelectedRow]]); If (! _alertMsg.Visible) {_alertMsg.Location = PointToScreen (new point (This. Withth / 4th, -this.Height)); _alertMsg.Show (this); } If (onReadMessageReq! = Null) onReadMessageReq (IDcollection [this.dataGridViewAlerts.SelectedRow]); }} Hold (exception) {}}  Note: This is happening only in Windows 2000   

I used a component DotnetMagic .dll, I do not know whether this causes the problem. Someone has helped me solve this

  i replacing these lines  

_alertMsg.Location = PointToScreen (new point (this. Width / 4, -this.Height));

with _alertMsg.Left = X; _alertMsg.Top = y;

And this solves my problem


Comments