473,672 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1092
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" <HaggardAtWorld DotStdDotComwro te in message
news:OF******** ******@TK2MSFTN GP05.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
2126
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 developer. www.dotnetjunkies.com and their book http://www.amazon.com/exec/obidos/tg/detail/- /0672321068/ref=lib_dp_TFCV/002-7953039-7491213? v=glance&s=books&vi=reader#reader-link is another great resource.
2
7567
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 the VB program on that same machine, I can view the ActiveX control fine. He is using Citrix. The same ActiveX controls can be viewed on other machines. When trying to view 1 of the ActiveX control, he got an error "Visual Basic Run-time redist...
0
1462
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 made our support of the controls for updates very easy as we currently just publish the updated MSI files to Active Directory - we are using Intellimirror and GPO w/ Active directory to update our applications on all of our client computers. The...
6
1582
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 for a client's intrnet. On my client's server (Windows 2000 Terminal Server with ASP.NET v1.14322) I can't get any of the WebForm controls to render except for Label and (Web Form TextBox, RadioButtonList, Button, LinkButton all don't render) ...
16
7220
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
3508
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; Response.Form.GetEnumerator(), etc. while, identifying specific controls by programmatically assigned unique id (e.g. MyButton_AnswerID_123). However, I am not sure if that is the proper way. What is the common practice?
14
1984
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 on it. I have created these controls in the form design tool, and given them unique names. I would like to be able to put together a line of code that allows this:
3
1229
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 often an indication that other memory is corrupt' These are custom controls. Anyone have any ideas as to what causes this?
2
2067
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 member has encountered this, but I'm hoping that he or someone else knows more now. Info about this bug: 1. When running this database on (networked) Machines A and B at the office, as well as C at home, the controltip text feature works fine and...
0
8505
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8648
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8701
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7481
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6261
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4246
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1842
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.