Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Any idea how to get all task bar items details in windows .I am looking for a notification if some thing new process came on task bar list
There is no official API to directly enumerate taskbar items, or query any details about them.
A Taskbar button is created for:
a visible top-level unowned window, or a visible window that has the WS_EX_APPWINDOW extended style. These windows can easily be discovered using an EnumWindows() callback that checks each available window using IsWindowVisible (), GetParent()/GetWindow(GW_OWNER), GetWindowLongPtr(GWL_EXSTYLE), etc.
a window that is added to the Taskbar manually using ITaskbarList::AddTab(). These windows cannot be enumerated. The only way I can think to discover them is to replace the standard CLSID_TaskbarList COM object with a custom DLL implementation that intercepts all ITaskbarList calls across all processes.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I was wondering what type of side menu Microsoft used in their Hyper-V Manager (or mmc as well) and wanted to ask you If there is such control in C# (Winform / wpf) and what is the name of it?
I was trying to play with TreeView but it sucked in many ways, e.g. I was not able to "unfocus" selected node and so on.
Hope you are all doing well during this time.
Thank you!
hyper-v manager side menu screenshot
You can either use a 3rd party library having Accordion Control
Ex: https://docs.devexpress.com/WindowsForms/114553/controls-and-libraries/navigation-controls/accordion-control
Or make one for yourselves using WPF/WinForms Custom Control.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm developing a C# application that needs to be able to tell iTunes to open a .m4v file on Windows. Is this possible? I've tried on Command Prompt to do this but it just opened iTunes without opening the movie. Is there any iTunes command line arguments or am I out of luck?
Edit: Also, once the movie is launched, is it possible to control it, such as playing, pausing, or closing it?
Your best bet might be iTunes COM object (How to control iTunes through winForms)
but I'm not sure if it's going to support action such as loading file into an iTunes, but if you are about to control it like play/pause, fast forward, rewind etc. then this is what you should looking at.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
In my WPF application, I have to show some windows on UI thread and some on separate thread. I can access all windows running on UI thread using System.Windows.Application.Current.Windows, but unable to find windows that are running on separate thread.
Can any one knows how can i achieve this ?
Thanks
System.Windows.Application.Current.Windows only gives you Windows that where created on the UIThread not on WorkerThread. From the MSDN:
A Window reference is automatically added to Windows as soon as a window is instantiated on the user interface (UI) thread; windows that are created by worker threads are not added.
I guess you will have to do the book keeping on your own. For instance by using a static list of windows. Keep in mind that you need to guard that against concurrent access and you need to remove those windows when they get closed.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Make size of Window responsive for every type of screen resolution using Windows form
It is strongly recommended using WPF because it is a much better choice for that. You can use of the Anchor and Dock properties of Controls on a Windows Form to achieve proper placement on different resolution but the result is not satisfactory. Also you can use Automatic Scaling in Windows Forms. However, in general WPF is much better choice.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Since I add an extra screen to my developpment laptop and set an extended desktop, the view of the forms change by the way it show in the picture below two form with same code in windows 8
The lower screen is displayed in windows classic style. Your windows 8 switches from theme when you connect a extra screen to it (It could be because your pc is low on certain resources like RAM, or just because...well its Windows). You can change it back to get old default theme (howto here: http://windows.microsoft.com/en-us/windows-8/get-started-with-themes ).
Keep in mind tough that it is wise to test your form application with differed themes. You already have one control that gets pretty much useless in classic mode.