• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

VB.NET DLL - Form layout changes after build

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
advfinance
Asked:
advfinance
1 Solution
 
Jacques Bourgeois (James Burger)Commented:
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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now