This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?
Set global hotkeys using C#
I have a WPF app, by clicking close button or by clicking minimize button it hides but it still remains open in a tray icon . I want to know how can I open the app window with a special shortcut, for example by pressing Shift+Start.
Babylon do the same thing by F10 .
note : I want to do it in WPF
thanks
Related
This question already has answers here:
Programmatically show the desktop
(2 answers)
Simulating Key Press C#
(8 answers)
Closed 11 months ago.
hi i want to create application when i click the button it go to desktop, i mean when you press Win + D it go to desktop directly, i want to use user32 to be more practical, I want to use this method in the future too, but how?
i dont want to use this way, this road is a little weak :
II.Keyboard.KeyDown(VirtualKeyCode.LWIN);
II.Keyboard.KeyPress(VirtualKeyCode.VK_D);
II.Keyboard.KeyUp(VirtualKeyCode.LWIN);
thank you for answer
This question already has answers here:
Simulating Key Press C#
(8 answers)
SendKeys to inactive application
(3 answers)
Closed 2 years ago.
Can I SendKeys to a selected window in c#?
The Program knows the window which it has to send it and the window not really necessary to be the active window.
I just want to give the program window name and send into it.
EX : I type application name (notepad for example) and not really necessary to be focused Upon the meant window.
This question already has answers here:
How can i change the cursor (image) in the whole windows OS
(3 answers)
Closed 7 years ago.
I would like to implement the next construction in .NET in a WPF application.
There is a window, and in it there is a little picture, e.g.: 16×16.
If i move the mouse above the picture, and pressed the left button (without release), the cursor will change to this picture until i release the button.
Between the press and release i would like to drag out this cursor image outside the application window.
How can i implement this feature without modifying system registry values?
Thanks in advance,
Peter
You cannot change the Windows cursor without changing the registry. This has been discussed before: How can i change the cursor (image) in the whole windows OS
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Detect change of resolution c# WinForms
I have an application written in C# where my window is docked to the edge of the screen.
I need to know where I can find the event if the resolution has changed so I can call the Dock method so I can repaint my window.
On the form object I can only see the SystemColorsChanged event.
You're looking for the SystemEvents.DisplaySettingsChanged event.
This question already has answers here:
What is the shortcut key for Run to cursor
(4 answers)
Closed 3 years ago.
I can not see the Run To Cursor in VS 2012 when I am developing in C#. I checked the tool bar and also DEBUG menu and in both places there is no such entry. Where can I find this option.
You can still use the keyboard shortcut Ctrl+F10. Otherwise you can right click on the line you want to run to and select Run to cursor.
You can add the button to the toolbar by selecting Add or Remove buttons on the Debug toolbar and then selecting Customize.