J
John B
I have a utility that minimizes to the system tray.
When I double click or right-click and select restore I want to show the
window and for it to be the active window again.
I have tried
this.Show
this.Activate
this.BringToFront
But in all cases, the form just restores to the task bar and does not
show itself.
The only way I could do it was with the win23 api's
ShowWindowAsync and SetForegroundWindow.
This is fine and works as desired, I just wondered if I was missing
anything and there was a managed way to do it?
Cheers
JB
When I double click or right-click and select restore I want to show the
window and for it to be the active window again.
I have tried
this.Show
this.Activate
this.BringToFront
But in all cases, the form just restores to the task bar and does not
show itself.
The only way I could do it was with the win23 api's
ShowWindowAsync and SetForegroundWindow.
This is fine and works as desired, I just wondered if I was missing
anything and there was a managed way to do it?
Cheers
JB