Solved

VB.NET DLL - Form layout changes after build

Posted on 2015-01-14
1
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

726 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