Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1808792
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:18:28+00:00 2026-05-17T06:18:28+00:00

We have a Japanese user reporting that a form size is truncated (smaller size,

  • 0

We have a Japanese user reporting that a form size is truncated (smaller size, not all controls are shown) on his Japanese machine.
In the windows form .designer.cs file, we have these settings:

     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

Moreover, in the form ctor, we have some code that look like that to adjust the form size to the DPI. uThe japanese user has a regular DPI set o 96.

     //
     // Adjust Form Size from DPIRatio
     //
     var size = this.Size; 
     // dpiRatio is 1.0 if DPI is 96, 
     // dpiRatio is less than 1.0 if DPI higher than 96
     var dpiRatio = DPIHelper.DPIRatio;  
     var newSize = new Size((int)(size.Width/dpiRatio), (int)(size.Height/dpiRatio));
     this.MaximumSize = newSize;
     this.MinimumSize = newSize;
     this.Size = newSize;

I am sure that it comes from the different set of font on Japanese Windows but didn’t find any guidance to follow to handle that on the web. Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:18:29+00:00Added an answer on May 17, 2026 at 6:18 am

    It’s the code in the 2nd snippet that messes this up. East Asian machines often take advantage of a XP feature that allows increasing the system font size without also increasing the DPI. Nice for readability of their intricate characters.

    Just remove the code to solve the problem. If you want to make the form unsizable then set its FormBorderStyle to, say, Fixed3D. If you do insist on faking the border then you’ll have to move the Min/MaximumSize assignments to the Load event. Only then is the form’s Size property calculated and corrected for the system font size as well as any user preferences like the size of the border or the size of the caption text. Which btw is another failure mode for your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form where the user inputs Chinese/Japanese characters and then I compare
We have a Japanese client that has source code in COBOL on an mainframe.
Does anyone have any code for alphabetizing Arabic and Japanese text that is in
I have several Java files that have Japanese strings in them, and are encoded
Here is my case: I have 3 menus (vietnamese, chinese, japanese) that each contains
I have website that converts Japanese Kanji into Romaji (roman letters) : and the
I have been developing a script that when a user types in correctly entered
I have a directory with a name that contains Japanese characters, and I need
We have an application that using the basic JSP/servlet that all text currently in
I have some source files that have comments written in Japanese. When I open

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.