473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Misplacement of controls on one machine but not others

I've got a problem with the way that some dialogs, er ah, I mean forms,
position their controls. On most machines, but not on my client's laptop,
all of the forms and their controls display in the expected fashion but on
my client's laptop, there are a couple of forms whose controls are placed as
though the height of the dialog was measured in smaller units than those
used to place its child controls. For example, one of the problem dialogs is
the proper width but its client area extends below the bottom of the
dialog's bottom border to such an extent that the OK and Cancel buttons are
not visible. This particular machine has some non-standard display
settings. The display is set at 1600 x 1200 and I suspect that the owner has
asserted larger than normal fonts but I do not have access to the machine
itself and don't know which display settings have been altered. I have a
desk top locally that supports 1600 x1200 and have gone through all of the
display properties that are concerned with font size that I can think of but
have not been able to duplicate the observed failures. In Dev Studio 6 days,
the dialog box coordinates are measured in font units. How are form
positions determined in .NET? How could the size of the form be out of sync
with the positions of its child controls?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com
Mar 6 '07 #1
2 1075
I suspect you are correct. Ask them to set their Font size to "Normal" or
96 dpi and see what happens.
Mar 6 '07 #2
After much experimentation and research, I finally gave up trying to make
use of the built in design time features. No matter what I did, there was
always some configuration or another where the controls simply were not
being placed correctly when the design placement of the controls was
different than the run time. The standard examples of a simple text box or a
label and a control all work fine but once more complicated layouts were
generated or, worse, third party controls were included, things invariably
became unglued. To solve the issue, I intercepted the event that handles the
form's changing size and explicitly calculated where each control should be
given the actual client space available. This works flawlessly for me.
Thanks for the many helpful hints given by one and all.
--
Richard Lewis Haggard
www.Haggard-And-Associates.com

"Richard Lewis Haggard" <HaggardAtWorldDotStdDotComwrote in message
news:OF**************@TK2MSFTNGP05.phx.gbl...
I've got a problem with the way that some dialogs, er ah, I mean forms,
position their controls. On most machines, but not on my client's laptop,
all of the forms and their controls display in the expected fashion but on
my client's laptop, there are a couple of forms whose controls are placed
as though the height of the dialog was measured in smaller units than
those used to place its child controls. For example, one of the problem
dialogs is the proper width but its client area extends below the bottom
of the dialog's bottom border to such an extent that the OK and Cancel
buttons are not visible. This particular machine has some non-standard
display settings. The display is set at 1600 x 1200 and I suspect that the
owner has asserted larger than normal fonts but I do not have access to
the machine itself and don't know which display settings have been
altered. I have a desk top locally that supports 1600 x1200 and have gone
through all of the display properties that are concerned with font size
that I can think of but have not been able to duplicate the observed
failures. In Dev Studio 6 days, the dialog box coordinates are measured in
font units. How are form positions determined in .NET? How could the size
of the form be out of sync with the positions of its child controls?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com

Mar 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: William Ryan | last post by:
Well, that depends. http://www.amazon.com/exec/obidos/tg/detail/- /0672320681/qid=1056861878/sr=1-1/ref=sr_1_1/002-7953039- 7491213?v=glance&s=books Is a must read IMHO for any ASP.NET...
2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
0
by: Brian Young | last post by:
(Sorry for double post) We are investigating the conversion of all our Legacy applications to VS.Net. Most of our applications run as ActiveX Controls hosted in Internet Explorer. This has...
6
by: AbeR | last post by:
I'm an intermediate/novice (I've probably developed a half dozen ASP.NET apps at this point) ASP.NET C# developer at this point and am totally strumped by a client's setup. I am developing this...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
5
by: Amelyan | last post by:
How can I get state of dynamically created controls (RadioButton, CheckBox, TextBox.Text) on post back when I click submit button? The only way I know is by traversing Response.Form enumberator;...
14
by: 97T | last post by:
Well this is still bugging me. I know there are other ways around this, but for a number of reasons I would like to be able to do this one simple thing. I have a form with a number of controls...
3
by: =?Utf-8?B?QmVuIFdoeXRl?= | last post by:
I have an asp.net application using vb.net code. When I try and view the pages in design mode I get 'error creating control' messages with 'Attempted to read or write protected memory. This is...
2
by: DentRouge | last post by:
I've developed an Access interface for a non-profit. I just discovered that the controltip text feature does not work on precisely one of their machines on the network. I've seen that another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.