display different at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
Back
Top