473,320 Members | 1,921 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,320 software developers and data experts.

display different at runtime

Hi all. I hope you can help
I am using VB.net 1.1 on an XP machin
The windows forms application has an MDI form (that is a fixed width and height) that loads individual forms for display
I have a Window form that when in design mode looks just the way I want it
When i run the application, that one particular form has all the controls on it are moved to the left
each of the controls are anchored to the top left and they are not docked

any ideas would be greatly appreciated

Regards Nathan Fisher
Nov 20 '05 #1
2 2378

an observation to clarify. It appears that the image controls and link label controls have extra padding added around their embedded images. On the form in desing time the control is size is the same as the image. at runtime the control has added padding around the image and as a result pushed other controls to the right (sorry my original post said to the left) and down.
----- Nathan Fisher wrote: -----

Hi all. I hope you can help.
I am using VB.net 1.1 on an XP machine
The windows forms application has an MDI form (that is a fixed width and height) that loads individual forms for display.
I have a Window form that when in design mode looks just the way I want it.
When i run the application, that one particular form has all the controls on it are moved to the left.
each of the controls are anchored to the top left and they are not docked.

any ideas would be greatly appreciated.

Regards Nathan Fisher
Nov 20 '05 #2
Problem Solved !!
The issue was that the form font was a different point size to the rest of the control fonts which were larger. There is an autoscale property on the form that scales the controls relative to the form font. Since the controls on the form had a larger font then form scaled the controls to acommodate the larger font. To fix the problem I changed the form font to match the rest of the controls and left the autoscale property as true and it all came back to the right place.

----- Nathan Fisher wrote: -----
an observation to clarify. It appears that the image controls and link label controls have extra padding added around their embedded images. On the form in desing time the control is size is the same as the image. at runtime the control has added padding around the image and as a result pushed other controls to the right (sorry my original post said to the left) and down.
----- Nathan Fisher wrote: -----

Hi all. I hope you can help.
I am using VB.net 1.1 on an XP machine
The windows forms application has an MDI form (that is a fixed width and height) that loads individual forms for display.
I have a Window form that when in design mode looks just the way I want it.
When i run the application, that one particular form has all the controls on it are moved to the left.
each of the controls are anchored to the top left and they are not docked.

any ideas would be greatly appreciated.

Regards Nathan Fisher
Nov 20 '05 #3

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

Similar topics

11
by: Chris Mantoulidis | last post by:
Out of curiosity, I wanted to test executable file sizes of the same program from different compilers... The 2 compilers I tested (both old, on purpose) were Borland C++ 3.1 and DJGPP 2.03... ...
7
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
3
by: Alexander | last post by:
When i store rule on PC with .NET.SP1 i cant restore them from PC without SP1. An i get this Error: System.Runtime.Serialization.SerializationException: Possible Version mismatch. Type...
4
by: Mike L | last post by:
Error occurs on "System.Deployment.Application.ApplicationDeployment.CurrentDeployment" ** Here is my code private void frmMain_Load(object sender, System.EventArgs e) {...
3
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from...
6
by: Aspiring .NET Programmer | last post by:
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows...
3
by: sherifffruitfly | last post by:
Hi all, I've got a class with a private DataSet member, and a void display() method. The display() method is *supposed* to take the DataSet for the class (instance), new up a predefined for...
7
by: MLH | last post by:
I use this line DoCmd.SelectObject acTable, "tblAdmin", True when I want to display database window. Often- times, working on a remote mde via a TCP/IP connection, its convenient to have a...
8
by: | last post by:
I'm looking for some design guidance on a collection of projects I'm working on. The project involves a bunch of websites constructed out of a collection of user controls. Different user...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.