Walter Fabio Simoni
Walter Fabio Simoni

Reputation: 5729

Which winForm control is using for that?

I would like to create a winform in c# like this :

Here is the winform

I woule like to reproduce the zone in blue. Which contrôle i need to use please ?

Thanks a lot,

Best regards,

Upvotes: 1

Views: 223

Answers (2)

Bobson
Bobson

Reputation: 13706

It looks to me like you can reproduce it using a standard form, with a BackColor set to blue (instead of the default color), and a panel in it which has BackColor set to white (instead of the default transparent). To get the X as the only thing on top, you need to toggle the MinimizeBox and MaximizeBox properties to false (see here for a short example).

Does that help?

Upvotes: 0

Albin Sunnanbo
Albin Sunnanbo

Reputation: 47038

There is an API called DwmExtendFrameIntoClientArea.

You can use it directly with p/invoke (example on Code Project).

However there seems to be lots of wrappers for c#, like Windows Forms Aero

Upvotes: 5

Related Questions