By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,358 Members | 2,811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,358 IT Pros & Developers. It's quick & easy.

display different at runtime

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.