Solved

VB.NET DLL - Form layout changes after build

Posted on 2015-01-14
1
148 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

911 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