?
Solved

VB.NET DLL - Form layout changes after build

Posted on 2015-01-14
1
Medium Priority
?
169 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

800 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