By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,610 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,610 IT Pros & Developers. It's quick & easy.

VB 2005 Design View is not Accurate

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.