How to change the appearance of the form according to the operating system?

Asked

Viewed 235 times

0

When developing a project in C# (Windows Form Application) the appearance of the application window (borders) is in accordance with the OS in which I am running the application (Windows XP, Vista, 7, 8, 10)!

WINDOWS XP

Formato Windows XP

WINDOWS 7

Formato Windows 7

Could I run my program in my Windows 10 in Visual Studio and see how the borders of the program would look in Windows 7 for example?

  • Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site

2 answers

3

There may be some tool, with high probability of being online, but I do not know. Official has nothing until because it is complicated without the operating system help.

Even so it’s still complicated because you must be imagining that everyone uses with the standard Windows theme, but many people do not use, so you can not see all possibilities. If your application depends on the theme to get good probably has something wrong with it.

Of course you can develop an application that does this on virtual machines and coordinates the presentation of the main themes. But if you do, you probably have a product on hand.

2

I don’t know this, what you can do to get around this problem is to remove the edges of your form and leave background images, IE, you will create the image of your screen and set as background-image.

  • 1

    also agree it can remove the Boras and create edges and buttons to close and minimize so that the layout is always the same in all versions compatible with donetframwork that it uses

  • I was already doing this, it turns out that the user can not resize the window! (I left Formborderstyle as NONE) and the user, in this application that I am building, he has to be able to change the window size! Except that if I leave the borders of Windows the application gets a little ugly (in Windows 7, Vista and Xp) already in Windows 8 and 10 gets better!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.