i got a problem with a wpf application. I got a checkbox to set the window always on top, but when i activate the checkbox and set TopMost = true not only my window gets in front, also the taskbar.
My problem is, my application should stay in front of another fullscreen application. This means, only the window should be in focus, not the taskbar.
I found a solution with hiding the taskbar completely as soon i active TopMost... but this is not a satisfying solution, because the taskbar is also hidden, when I use my tool without the fullscreen application.
Summary:
- setting the application window always on top with my checkbox
- with my fullscreen application running, there should be no focus on the taskbar
- when running without the fullscreen application, the taskbar should be shown without focus.
I hope somebody can help me and thanks for your attention.
best regards,
Simon
I'm not sure if it works, but you can try this: disable the Taskbar-Icon for your TopMost-App.
Another workaround would be to let the taskbar always slide out of view (its a taskbar setting)
Related
I am developing a windows form application where one of the forms uses the border style of SizableToolWindow however this causes issues when you have the windows taskbar set to the side of the screen.
Is there any possible way to stop this happening without moving the taskbar?
Solved
Changed the window border to "sizeable"
Changed the window border to "sizeable"
suggested
Any reasons why you are using a ToolWindow when what you actually want to display is not a ToolWindow ? This works perfectly with a standard window – Franck
How to implement, using WPF, notifications mechanism similar to what eg. Chrome has?
By which I mean: custom content pop-up, displaying especially when my main application window is minimized.
Things I have tried out so far:
WPF Popup class with StaysOpen property set to true. Seems okay, except that it disappears when I minimize the main window.
Custom template window: well, it's a window, so it appears as another application window in the taskbar, which I'd like to avoid.
I've created an application with Glade and GTK# in windows XP:
at startup window is not maximized
I click on "Search" and a listview is filled with data from a database:
image http://www.microline.eu/Capture-1.jpg
I click on maximize button the window freezes and does not respond
any suggestions?
Thanks
Added informations
On linux it works well
No code on maxime routine
My idea is that there is a bug in resizing procedure in GTK# for Windows
It's difficult to diagnose your problem without knowing what your code looks like - do you have any resize routines?
To solve your problem, I'd narrow down the potential culprits. Remove or hide one or more controls until you can find which control is responsible for the freeze on maximize.
Once you narrow down which control is causing the issue, determine whether it's the data in the control causing the issue. If it's the grid, see if the freeze still happens when there's no data in the grid.
If I change property Window position from Always center to None, then maximize works well.
I am implementing an application, and when you start this application, you have a main screen maximized over the whole screen, but also a popup appears. I want that as long as my pop up isn't closed, the user can't do anything in the main screen behind this popup (like when you have an error message or something)? It is probably some property but can't find it out. Someone who can help me out please? I am working in WPF and C#.
Popups are not not meant for this sort of thing i think. You can just use a normal Window and ShowDialog to get a modal popup. If you don't want the frame and everything you can style it respectively by setting AllowsTransparency to true and WindowStyle to None.
I've got a Windows Forms application in C# that starts off with a loading dialog. As expected, a button for the app shows up in the Windows taskbar.
I would like to detect right-clicks that might be done to that button.
Ultimately, I hope to disable the right-click or simply have the loading dialog regain focus. I've seen that some people use custom libraries and packages (interop, for example) to achieve some Win32 functionality, but I'd personally like to avoid this. Is it impossible to do without such libraries/packages?
How about just not showing the form in the taskbar by setting Form.ShowInTaskbar to false?