Home > Mobile >  C# - How can let my month Calendar look like in Design
C# - How can let my month Calendar look like in Design

Time:12-23

I make an Application simmilar to Microsoft ToDo.

I made an User Control, where the Calender is in.

When i have it in the Design, it looks like this: https://ibb.co/XD0Wyj5

But when i start the Programm, it looks like this: https://ibb.co/vv30xrw

I tried it with

Application.EnableVisualStyles();

but it still looks like this.

What can i do to have the Design in the started Program?

CodePudding user response:

Check out the VisualStyleState reference - https://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/VisualStyles/VisualStyleState.cs,01ad4fcb5f9ea430,references

The visual styles are not enabled when VisualStyleState.NoneEnabled is assigned to Application.VisualStyleState

  • Related