FIX: Button Sizing Inconsistent Between Form Designer and Run-Time

Article translations Article translations
Article ID: 223352 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

Symptoms

When using the Visual J++ 6.0 Form Designer, the size of the Windows Foundation Classes (WFC) components may not be consistant between design-time and run-time when the font sizes of the development machine and the target/deployment machine are different.

Cause

Under certain circumstances, such as creating a child window in the constructor of the parent window, the autoscaling feature of the Form Designer does not work.

Resolution

To work around this problem, only create child windows for a Multiple Document Interface (MDI) application after the parent window has been created. Avoid using fixed-size components, such as bitmaps, when auto-scaling features are desired.

Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

More information

This problem might be seen when an MDI application is developed on a machine with a large font setting, and is then deployed or run on a machine with a small font setting, or vice versa. This problem might also be seen when using fixed-size components and auto-scaling at the same time.

Steps to Reproduce Behavior

  1. Develop an MDI application on a machine with a large font setting.
  2. Design both the parent window and the child window using the Visual J++ 6.0 Form Designer.
  3. Include code to create and show an instance of a child window in the constructor of the parent.
  4. Run the resultant application on a machine with a small font setting.

References

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
http://www.microsoft.com/java

Properties

Article ID: 223352 - Last Review: April 15, 2014 - Revision: 1.0
Applies to
  • Microsoft Visual J++ 6.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbcmnctrls kbctrlcreate kbfix kbide kbvj600fix kbvs600sp1fix kbvs600sp2fix kbvs600sp3fix kbwfc KB223352

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com