473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB 2005 Design View is not Accurate

Hi, I'm having the rather distressing situation where what my VB 2005 SP1
form is showing in design view, is not accurate when it's run.
Specifically, I have a label control that shows all it's text in design
view, but when run either attempts to line wrap (which fails because the
height isn't enough for 2 lines) or chops off the last letter when I change
the alignment. If it makes a difference, this form was converted to 2005
from VB6. This is distressing because what it's telling me is that design
view in VB 2005 doesn't accurately represent what you see when you run.

Can anyone suggest what's going on here, and how it might be fixed so that
design view is accurate?

Thanks!
Mar 25 '07 #1
3 1411
I had that problem once when the form was developed on one machine and run
on another one. In my case, it was because the DPI settings were different
on each machine.

If you regenerate the code-behind (just change any control and VS does this
automatically), does it make any difference? Are you running it on the same
machine you're developing it on?

Another thing to check is if you are changing any of the properties in your
code, but I assume you've already checked that.

Robin S.
---------------------------------------
"David C. Barber" <da***@NOSPAMdbarber.comwrote in message
news:cP******************************@comcast.com. ..
Hi, I'm having the rather distressing situation where what my VB 2005 SP1
form is showing in design view, is not accurate when it's run.
Specifically, I have a label control that shows all it's text in design
view, but when run either attempts to line wrap (which fails because the
height isn't enough for 2 lines) or chops off the last letter when I
change
the alignment. If it makes a difference, this form was converted to 2005
from VB6. This is distressing because what it's telling me is that
design
view in VB 2005 doesn't accurately represent what you see when you run.

Can anyone suggest what's going on here, and how it might be fixed so
that
design view is accurate?

Thanks!


Mar 25 '07 #2
I'll give that a try and see.

I am running it on the development machine in the IDE while I'm seeing this.
That's why it concerns me the most that the design form and running form
aren't matching. I have them both on the screen right next to each other.

Thanks!

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:oY******************************@comcast.com. ..
I had that problem once when the form was developed on one machine and run
on another one. In my case, it was because the DPI settings were different
on each machine.

If you regenerate the code-behind (just change any control and VS does
this
automatically), does it make any difference? Are you running it on the
same
machine you're developing it on?

Another thing to check is if you are changing any of the properties in
your
code, but I assume you've already checked that.

Robin S.
---------------------------------------
"David C. Barber" <da***@NOSPAMdbarber.comwrote in message
news:cP******************************@comcast.com. ..
Hi, I'm having the rather distressing situation where what my VB 2005
SP1
form is showing in design view, is not accurate when it's run.
Specifically, I have a label control that shows all it's text in design
view, but when run either attempts to line wrap (which fails because the
height isn't enough for 2 lines) or chops off the last letter when I
change
the alignment. If it makes a difference, this form was converted to
2005
from VB6. This is distressing because what it's telling me is that
design
view in VB 2005 doesn't accurately represent what you see when you run.

Can anyone suggest what's going on here, and how it might be fixed so
that
design view is accurate?

Thanks!


Mar 25 '07 #3
I was having the exact same problem. Drove me nuts. I only figured it out
because I checked the code-behind values of the sizes of my controls,
changed one of the controls so it regenerated the code-behind, and checked
the sizes again, and voila! They were different!

Good Luck.
Robin S.
-----------------
"David C. Barber" <da***@NOSPAMdbarber.comwrote in message
news:Nr******************************@comcast.com. ..
I'll give that a try and see.

I am running it on the development machine in the IDE while I'm seeing
this.
That's why it concerns me the most that the design form and running form
aren't matching. I have them both on the screen right next to each
other.

Thanks!

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:oY******************************@comcast.com. ..
>I had that problem once when the form was developed on one machine and
run
on another one. In my case, it was because the DPI settings were
different
on each machine.

If you regenerate the code-behind (just change any control and VS does
this
>automatically), does it make any difference? Are you running it on the
same
>machine you're developing it on?

Another thing to check is if you are changing any of the properties in
your
>code, but I assume you've already checked that.

Robin S.
---------------------------------------
"David C. Barber" <da***@NOSPAMdbarber.comwrote in message
news:cP******************************@comcast.com ...
Hi, I'm having the rather distressing situation where what my VB 2005
SP1
form is showing in design view, is not accurate when it's run.
Specifically, I have a label control that shows all it's text in
design
view, but when run either attempts to line wrap (which fails because
the
height isn't enough for 2 lines) or chops off the last letter when I
change
the alignment. If it makes a difference, this form was converted to
2005
from VB6. This is distressing because what it's telling me is that
design
view in VB 2005 doesn't accurately represent what you see when you
run.

Can anyone suggest what's going on here, and how it might be fixed so
that
design view is accurate?

Thanks!




Mar 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marcel - IDUG Europe 2005 | last post by:
Dear DB2 user, My name is Marcel Lévy and I'm a member of the IDUG 2005 Europe Conference Planning Committee. ********************************************************************* Mark your...
1
by: David Sagenaut | last post by:
In 2003 VS.NET, I can drag a label control to design view, then I can move the label control around. But in 2005 VS.NET, I cannot move the label control around in design view after I drag a label...
3
by: | last post by:
I installed visual developer express 2005, and the Design view does not start, only the Html view works?
0
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
4
by: luna | last post by:
i had errors in my 2003 project, but 2003 allowed me to ignore them and carry on, it displayed my page fine, (even on build) since converting to 2005 i have hundreds of errors and it wont allow me...
2
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi, I have just installed visual studio 2005 professional edition (evaluation version). However it will not allow me to view webforms in a website project in design view. I can just see the HTML...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.