Solved

VB.NET DLL - Form layout changes after build

Posted on 2015-01-14
1
142 Views
Last Modified: 2015-02-24
I have a VB.NET dll which contains some forms.

Whilst testing my dll I've notice that the layout of the form is different after build than it is whilst in design time. The left alignment of text boxes is equal but labels are appearing to be at different alignments. Any ideas?

Each label is docked to a text box control in design time and the text alignment property is set to middle right.

Thanks
0
Comment
Question by:advfinance
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40551747
Maybe it's not the alignment. The position of the labels or the text can be changed by some of their properties, such as Anchor, AutoSize and Dock. If Padding and Margin are changed through code, then the text could also move inside of the Label.

The first thing I would do is put a border or a colored background on the labels. This will help you to define whether the labels themselves change position or the text moves inside the labels. From there, look at the properties that could affect the type of change that you get.

If you do not understand what happens, show us print screens in both design and running mode, we might be able to pinpoint possible problems from the result.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now