-
September 24th, 2014, 05:45 PM
#1
Reproducing "on focus" when minimizing another window on a context menu strip click
Greetings,
I would like to reproduce the "on focus" behavior when you minimize an application on a context menu strip, let me explain why:
When you minimize a window, the focus will be restored to the previous application that was used last, it's what I want to reproduce, basically, when I press on a selection on the context menu strip, I would like that application that was previously focused get the focus back so I don't have to click on it again.
Is there any way to achieve that?
I tried to play This.WindowState = this.WindowState = FormWindowState.Minimized; to make the program think it's getting minimized but it did not recreate the behavior I am expecting.
Thanks a lot for your time and help.
-
September 25th, 2014, 01:27 PM
#2
Re: Reproducing "on focus" when minimizing another window on a context menu strip cli
By context menu strip, are you referring to the system taskbar (i.e the one that contains the start menu button)?
-
September 26th, 2014, 07:20 PM
#3
Re: Reproducing "on focus" when minimizing another window on a context menu strip cli
Greetings,
The context menu strip is when you right click on an icon in the system tray (bottom right of the screen), basically the right click on the notify icon.
Context menu strip is the name of the control in VS2013.
Thanks a lot again for your time and help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|