Windows application and low resolution?

  • Thread starter Thread starter Doc John
  • Start date Start date
D

Doc John

I have a Windows application developed in VS.Net 2002 and upgraded to
VS2005, and when I try to run it in an 800x600 resolution, it doesn't load
completely (plus its memory usage is really high). If I minimize, and
maximize it, then it'll display correctly.
How come? Is there a fix?

Thanks.
 
Doc said:
I have a Windows application developed in VS.Net 2002 and upgraded to
VS2005, and when I try to run it in an 800x600 resolution, it doesn't load
completely (plus its memory usage is really high). If I minimize, and
maximize it, then it'll display correctly.
How come? Is there a fix?

That doesn't happen normally. So your application does something
unusual that depends on the resolution somehow. If you can post a
concise-but-complete sample of code that reliably reproduces the
problem, someone might have a suggestion for how to fix it.

Otherwise, the chances are relatively low that someone can answer your
question.

Pete
 
Hi Doc,

Could you tell me in what screen resolution the application was developed,
800x600, 1024x768, or something else?

Do you have code to "relocate" the controls on the form in the application?
Otherwise, the controls on the form shouldn't display correctly after you
minimize and then maximize the form, if they don't display properly when
the application is run.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Doc,

How about the problem now?

If the problem is still not solved and you need our further assistace,
please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
The application was developed in 1024x768. The problem is that the
application doesn't completely load when the resolution is 800x600. It
seems to freeze when it loads in low resolutions. The Forms are half-drawn
(it also freezes). Not only that, but while it's loading, the process uses
100% CPU. The only way to "fix" it is to minimize it (and let Windows draw
the Forms in that state), and maximize it.
Thanks.
 
Thanks for the help.

The problem (or part of the problem) is that the MDI Form has a tabcontrol
docked to the left, so if the application loads at 800x600, the Tab Control
automatically resizes and "hides" to the left. This resizing while loading
was causing this problem. I eliminated this and the application loads
correctly.

So it's not possible to do this at such low resolutions?

Thanks.
 
Hi Doc,

Thank you for your reply and more detailed information.

I performed a test based on your description.

1. Under the 1024x768 screen resolution, I create a WinForm application
project which has a form with a TabControl docked to the left side and the
form's size is 1024x700.

2. Build the project.

3. Run the application under the 800x600 screen resolution and the size of
the form becomes 812x612 when it is shown. Part of form falls outside of
the display area of screen.

4. Memory usage doesn't become higher when application is run under 800x600
screen resolution.

To ensure your form to be shown properly under any screen resolution, I
suggest that you set the WindowState property of the form to Maximized.

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support\
 
Hi Doc,

How about the problem now?

If the problem is still not resolved, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support
 
Back
Top