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.
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:
MessageBox.Show() Custom Icon?
(4 answers)
Closed 6 years ago.
Is there anyway to create a custom MessageBoxIcon, like MessageBoxIcon.Warning or something, only of my own image?
The Windows message box is a sufficient means to display messages to the user.
Try this link,
http://www.codeproject.com/Articles/17253/A-Custom-Message-Box
This question already has answers here:
How can run functions of powercfg by C# code?
(3 answers)
Closed 9 years ago.
From my C# program I want to open the power options from the control panel in Windows.
However I can't seem to find out how to do that, I tried making a shortcut and see where it goes but it is referring to the control panel.
Does anyone have an idea how to do that or where the exe is located to launch?
Try the following:
System.Diagnostics.Process.Start("powercfg.cpl");
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:
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