Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Summary

Date field inside the Windows Forms DateTimePicker control might be rendered incorrectly in applications running on Windows 10 Creators Update. Rendering issues might include extra spaces, or missing text, depending on the Format property value.

Format set to Long:

Format set to Long

Format set to Short:

Format set to Short

Format set to Time:

Format set to Time

This issue occurs when the application loads Comctl32.dll Version 5 on Windows 10 Creators Update.

Workaround

Note Applications that use Comctl32.dll Version 6 work correctly.

To work around this issue, use Comctl32 Version 6 by enabling Visual Styles in the app.manifest file as follows:

  <dependency>
    <dependentAssembly>
      <assemblyIdentity 
          type="win32" 
          name="Microsoft.Windows.Common-Controls"
          version="6.0.0.0"
          processorArchitecture="*"
          publicKeyToken="6595b64144ccf1df"
          language="*"
        />
    </dependentAssembly>
  </dependency>
 

More information

This issue is caused by a change in native date time picker control in ComCtl32.dll V5, where control’s edit field is not formatted correctly.

For more information, see Enabling Visual Styles and Application.EnableVisualStyles Method ().

For more information about known issues in the .NET Framework 4.7, see Known issues for .NET Framework 4.7.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×