|
-
Nov 6th, 2008, 09:03 PM
#1
Thread Starter
G&G Moderator
[RESOLVED] Controls disappearing on different resolutions
Hi all,
I've built an application which I originally had planned to distribute across a number of computers.
However, on one of my forms, a combobox disappears when the application is run on a smaller resolution to my development PC.
The positioning of the combobox, for testing purposes, is like so:
PHP Code:
comboBox1.Left = label3.Left + label3.Width;
This works fine on my development PC, however on a distrobution PC it is nowhere to be seen!
Tell me theres something blatently obvious that I am overlooking..
Regards,
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 6th, 2008, 09:39 PM
#2
Thread Starter
G&G Moderator
Re: Controls disappearing on different resolutions
I have resolved this issue.. but its quite strange.
I used the Width and Height of each objects ClientRectangle to calculate the position. I also call the .BringToFront method on the combobox to show it properly.
Why does this need to happen on different resolutions? It seems strange.
Oh well, I will mark the thread resolved. Thanks anyway guys/gals!
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Nov 6th, 2008, 10:23 PM
#3
Re: [RESOLVED] Controls disappearing on different resolutions
First up, this:
CSharp Code:
comboBox1.Left = label3.Left + label3.Width;
would be better as:
CSharp Code:
comboBox1.Left = label3.Right;
As for the issue, have you considered a TableLayoutPanel or FlowLayoutPanel. They may or may not be appropriate, depending on your layout.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|