Screenshot for all open windows - c#

I wanted to include this code in my script, everything fits so far. Unfortunately, only a black image is created, exactly as the original creator of the post has already written it. Unfortunately, he did not describe exactly how he could solve the problem, so I ask here, maybe someone has an answer for me?
Screenshot of all open windows
He wrote the following in his post, which i don't understand what he means:
Blockquote
I finally found the issue.
I had changed windows 7 settings for best performance, once I changed it to normal Aero settings. It works as expected.

Related

How do I create a user-customizable DockPanels in WPF C#

so I'm trying to create a Panel-System, where the user can "Design" his own layout. The user should be able to grab the Panel and dock it wherever he likes, or even leave it floating as a separate window.
I really love how Adobe solved this in Photoshop, InDesign, or Illustrator.
But I also can accept similar solutions.
I made some Screenshots to show you what I mean.
I can't even figure out how to start. And I couldn't find some instructions or tutorials online because I have no Idea how this system is called. Therefore, I have no code to demonstrate.
I honestly would be already happy, if someone just leaves the name of such system. Or a link to a tutorial.
Thank you :)
Screenshots:
Google Drive

WPF - Customizing title bar - uptodate solution

I love WPF but I'm in trouble.
Everything is very customizable but I didn't found anything valid for personalizing title Bar and Application borders.
I've understand that isn't possible to customize it directly because it's Windows that manage that, but otherwise I didn't found any valid solutions...
The only results that show up from google are using WindowChrome, but I think it's a VERY outdated solution.
Otherwise I only found THIS code snippet, but it is (for me, at least) a bit complicated to understand fully. Also, I've tried it but it doesn't allow to do some actions, like move window when maximized, but a lot of application (done in WPF) that I saw daily are able to do that.
In final word I can't find anything good.
I think WPF is very used even today, and I really don't understand how they do good looking solutions, that doesn't involve using a 2009 library.
You should get started with the docs. That sample you linked to will make more sense after that.
Basically, you are asking OS that you own the entire region and will take care of ensuring everything continues to behave as expected.

Invoking the hover preview from code

Is there anyway to invoke the windows preview effect (the one you get when you hover over the icon screenshot in the taskbar)? Notice how the other windows are made transparent? Is there an API to invoke that?
This sounds like precisely your problem. The answer seems to be "It's purposely impossible and you should feel bad for wanting to do that."
This was a question from a while ago. I found a snippet that works. You can find it in use at InteropAndHelpers file in the windowwalker project over at Github.

Is there a reason why a label might be visible on one PC but not on another?

I am following the tutorial posted here, which has been updated for .NET 3.5 here. I am using .NET 4.0 and the splash screen works wonderfully on both my laptop, and my colleague's laptop. But if we move to our test pc, for some reason the labels do not show up on the splash form. We put a logger in there, and I can see that the label is set to Visible, it is getting the updated text, and it has a positive size.
What could be causing this behaviour?
I had this problem about a week ago. In my case the color of the text was a system color that varied between systems, try changing the color. It may not be your issue, but it definitely causes the same issue.
Edit: Answering a question you had in your comments, there should be a autosizemode which you can try different modes until you find the one that works best, in my experience, yesterday, none and DPI work the best.
Note: My answers were based on .net 3.5 VB, but to my knowledge they are very similar and both paragraphs should be able to help.

Icons on Titlebar

I just found something really cool and i'm surprised i didn't really notice it sooner. Have you ever seen WordPad running on Windows 7? If you have, you'll notice that on the top-left of the window's titlebar are a few icons (save, undo/redo). On the actual titlebar itself! How cool is that? I was wondering how i would implement that feature into my own programs but don't know where to start. I went to MSDN and then got lost because i wasn't sure of what to actually look for... Can somebody please help me?
If you would like a piccture of what i'm talking about i can try and upload a pic somewhere like maybe photobucket or similar?
Thank you
Jase
It is part of the Ribbon ui. Here is some code from the code project.
http://www.codeproject.com/KB/toolbars/WinFormsRibbon.aspx
You can use a stack of commands to create a system that supports multiple level undo.

Categories