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

VB.NET Form looks different at runtime

P: 33
I'm designing a rather specific form in VB.Net 2008 Professional Edition for my company per a PDF file I have been provided.

I just noticed that everything seems to shift at runtime... The change is drastic enough that the blank space is displeasing to the eye and doesn't match my predefined form.

Does anyone know what's going on? Shouldn't the runtime view look the same as the design view I'm creating? If I move labels so that they actually overlap visually at design time, they show separated at runtime... On the design screen an object at a location of {40, 23} seems to be at {55, 23} at runtime.

Any clues you might have would be greatly appreciated. I feel betrayed by my .NET designer.
Apr 20 '10 #1
Share this Question
Share on Google+
3 Replies


P: 33
Ok, my runtime results are as follows:

Width changes from 73 at design time to 97 at runtime.
X position changes from 40 at design time to 53 at runtime
Apr 20 '10 #2

P: 33
Well, it apperas it was related to the fact that I was changing the form's font at runtime... So the issue is solved.
Apr 20 '10 #3

Frinavale
Expert Mod 5K+
P: 9,731
I'm glad you solved your problem :)

Thanks for posting your solution so that others facing this problem will have a reference.

-Frinny
Apr 27 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.