Hello to all, and happy new year!
I have this application that someone wrote that I'm
sort of checking out. The forms look fine in design
mode, but when I run the application, it crops off
the bottom of almost every form. I haven't figured
out yet if there's a pattern to it. I compared two
forms -- one that looks okay and one that gets cropped,
and aside from the size and the accept button and
the cancel button, their properties are identical.
I don't see anything in the code that is modifying
the size of the form, either.
The forms are all displayed as dialogs, if that matters.
Has anybody seen something like this before, or
do you have any ideas how I can figure out how to
fix it?
I talked to the original author of the application,
and it looks fine on his screen and on other people's
screens who have looked at the application.
I'd appreciate any advice you can offer me.
BTW, I'm using VB2005.
Thanks in advance,
Robin S. 10 1772
Maybe you should have asked Santa for a nice brand spanking new monitor :)
Seriously though ...
What happens if you plug another monitor into your computer? If it still
happens then it would be more likely to be a problem with your video card
than your monitor.
You might want to try tweaking whatever video card and/or monitor settings
you can find - like refresh rate etc.
Apart from that it's like 'how long is a piece of string?'.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:KP******************************@comcast.com. ..
Hello to all, and happy new year!
I have this application that someone wrote that I'm
sort of checking out. The forms look fine in design
mode, but when I run the application, it crops off
the bottom of almost every form. I haven't figured
out yet if there's a pattern to it. I compared two
forms -- one that looks okay and one that gets cropped,
and aside from the size and the accept button and
the cancel button, their properties are identical.
I don't see anything in the code that is modifying
the size of the form, either.
The forms are all displayed as dialogs, if that matters.
Has anybody seen something like this before, or
do you have any ideas how I can figure out how to
fix it?
I talked to the original author of the application,
and it looks fine on his screen and on other people's
screens who have looked at the application.
I'd appreciate any advice you can offer me.
BTW, I'm using VB2005.
Thanks in advance,
Robin S.
Darn, I was hoping that would help, but it didn't. My laptop's
resolution is 1400x1050. It does an extended desktop onto my
second (20.1") monitor that is 1680x1050. It displays the same
way on both monitors.
Here's a weird thing: it doesn't do it on applications that *I* develop.
Here's a weirder thing: I created a new form, set the size to the
same as his. Then I copied all of his controls onto my new form,
then copied all of the code-behind that he had written into my new
form, and made sure all of the [size] and [location] information for
the form and controls matched. Then I changed the other code to call
my form instead of his, and it looks fine.
I compared the Designer.vb files, and the size of all the controls
is different (even though I copied his and pasted them into mine).
And as for the form settings, the AutoScaleDimensions and ClientSize
are different. All of the sizes in the properties and controls for
both forms is the same; it's only different in the generated code.
After mucking around with it, I found if I move a control on the
screen, or change anything on the screen (even if I change it back)
and then save the form, it regenerates the Designer.vb file and
the AutoScaleDimensions goes from (6.0!, 13.0!) to (8.0!, 16.0!).
And the client size changes (634, 455) to (845, 560).
Note that none of the properties displayed for the form in
design mode have changed.
(insert Twilight Zone music here)
Is there some way to regenerate the designer.vb files other than
changing each form (there are a lot of them)? (Rebuilding the
solution doesn't do it, in case you're wondering).
Does this mean if I want to deploy an application on a computer
with a higher resolution than mine, I will have to handle the
sizing in the code?
Can I now justify buying a 30" monitor? Or should I just hook
my laptop up to my 42" plasma monitor/tv? Wow. Just think of the
real estate. Hmmmm.
Robin S.
---------------------------
"Stephany Young" <noone@localhostwrote in message
news:e6**************@TK2MSFTNGP02.phx.gbl...
Maybe you should have asked Santa for a nice brand spanking new
monitor :)
Seriously though ...
What happens if you plug another monitor into your computer? If it
still happens then it would be more likely to be a problem with your
video card than your monitor.
You might want to try tweaking whatever video card and/or monitor
settings you can find - like refresh rate etc.
Apart from that it's like 'how long is a piece of string?'.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:KP******************************@comcast.com. ..
>Hello to all, and happy new year!
I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form. I haven't figured out yet if there's a pattern to it. I compared two forms -- one that looks okay and one that gets cropped, and aside from the size and the accept button and the cancel button, their properties are identical. I don't see anything in the code that is modifying the size of the form, either.
The forms are all displayed as dialogs, if that matters.
Has anybody seen something like this before, or do you have any ideas how I can figure out how to fix it?
I talked to the original author of the application, and it looks fine on his screen and on other people's screens who have looked at the application.
I'd appreciate any advice you can offer me. BTW, I'm using VB2005.
Thanks in advance, Robin S.
"RobinS" <Ro****@NoSpam.yah.nonewrote:
>I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form.
I wonder if it has to do with
Display>Properties>Settings>Advanced>Fonts (120dpi/96dpi) ?
They're a common reason for dialogs to look wrong on different
systems.
--
Lucian
Well, I do have my fonts set to 120dpi because my monitor
is so resolute (so to speak). I reset them to 96dpi
and you're right, it did fix the forms. Of course,
now I can't read any of it, because the letters are 2mm
high, but gosh darn it, all the controls show up on the
screen. Thank you!
Robin S.
--------------------------------------
"Lucian Wischik" <lu***@wischik.comwrote in message
news:cr********************************@4ax.com...
"RobinS" <Ro****@NoSpam.yah.nonewrote:
>>I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form.
I wonder if it has to do with
Display>Properties>Settings>Advanced>Fonts (120dpi/96dpi) ?
They're a common reason for dialogs to look wrong on different
systems.
--
Lucian
Damn ... Lucian got in before I did ...
Yes, it will be ye olde 'Large Fonts'. Note that 560 pixels wide is
approximately 125% of 455 pixels wide and also that 120 dpi is 125% of 96
dpi.
Have a look at the AutoScaleMode property of the form and have a read up on
that property in the documentation.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Gr******************************@comcast.com. ..
Darn, I was hoping that would help, but it didn't. My laptop's
resolution is 1400x1050. It does an extended desktop onto my
second (20.1") monitor that is 1680x1050. It displays the same
way on both monitors.
Here's a weird thing: it doesn't do it on applications that *I* develop.
Here's a weirder thing: I created a new form, set the size to the
same as his. Then I copied all of his controls onto my new form,
then copied all of the code-behind that he had written into my new
form, and made sure all of the [size] and [location] information for
the form and controls matched. Then I changed the other code to call
my form instead of his, and it looks fine.
I compared the Designer.vb files, and the size of all the controls
is different (even though I copied his and pasted them into mine).
And as for the form settings, the AutoScaleDimensions and ClientSize
are different. All of the sizes in the properties and controls for
both forms is the same; it's only different in the generated code.
After mucking around with it, I found if I move a control on the
screen, or change anything on the screen (even if I change it back)
and then save the form, it regenerates the Designer.vb file and
the AutoScaleDimensions goes from (6.0!, 13.0!) to (8.0!, 16.0!).
And the client size changes (634, 455) to (845, 560).
Note that none of the properties displayed for the form in
design mode have changed.
(insert Twilight Zone music here)
Is there some way to regenerate the designer.vb files other than
changing each form (there are a lot of them)? (Rebuilding the
solution doesn't do it, in case you're wondering).
Does this mean if I want to deploy an application on a computer
with a higher resolution than mine, I will have to handle the
sizing in the code?
Can I now justify buying a 30" monitor? Or should I just hook
my laptop up to my 42" plasma monitor/tv? Wow. Just think of the
real estate. Hmmmm.
Robin S.
---------------------------
"Stephany Young" <noone@localhostwrote in message
news:e6**************@TK2MSFTNGP02.phx.gbl...
>Maybe you should have asked Santa for a nice brand spanking new monitor :)
Seriously though ...
What happens if you plug another monitor into your computer? If it still happens then it would be more likely to be a problem with your video card than your monitor.
You might want to try tweaking whatever video card and/or monitor settings you can find - like refresh rate etc.
Apart from that it's like 'how long is a piece of string?'.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message news:KP******************************@comcast.com ...
>>Hello to all, and happy new year!
I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form. I haven't figured out yet if there's a pattern to it. I compared two forms -- one that looks okay and one that gets cropped, and aside from the size and the accept button and the cancel button, their properties are identical. I don't see anything in the code that is modifying the size of the form, either.
The forms are all displayed as dialogs, if that matters.
Has anybody seen something like this before, or do you have any ideas how I can figure out how to fix it?
I talked to the original author of the application, and it looks fine on his screen and on other people's screens who have looked at the application.
I'd appreciate any advice you can offer me. BTW, I'm using VB2005.
Thanks in advance, Robin S.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Gr******************************@comcast.com. ..
Can I now justify buying a 30" monitor? Or should I just hook
my laptop up to my 42" plasma monitor/tv? Wow. Just think of the
real estate. Hmmmm.
Robin S.
Hook your laptop up to your TV and send me the 20" monitor????? :) DOH!!!
Those damn fonts, they get you every time. I will
look up the AutoScaleMode. Thanks for the pointer!
Robin S.
-------------------------------
"Stephany Young" <noone@localhostwrote in message
news:uD**************@TK2MSFTNGP03.phx.gbl...
Damn ... Lucian got in before I did ...
Yes, it will be ye olde 'Large Fonts'. Note that 560 pixels wide is
approximately 125% of 455 pixels wide and also that 120 dpi is 125% of
96 dpi.
Have a look at the AutoScaleMode property of the form and have a read
up on that property in the documentation.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Gr******************************@comcast.com. ..
>Darn, I was hoping that would help, but it didn't. My laptop's resolution is 1400x1050. It does an extended desktop onto my second (20.1") monitor that is 1680x1050. It displays the same way on both monitors.
Here's a weird thing: it doesn't do it on applications that *I* develop.
Here's a weirder thing: I created a new form, set the size to the same as his. Then I copied all of his controls onto my new form, then copied all of the code-behind that he had written into my new form, and made sure all of the [size] and [location] information for the form and controls matched. Then I changed the other code to call my form instead of his, and it looks fine.
I compared the Designer.vb files, and the size of all the controls is different (even though I copied his and pasted them into mine). And as for the form settings, the AutoScaleDimensions and ClientSize are different. All of the sizes in the properties and controls for both forms is the same; it's only different in the generated code.
After mucking around with it, I found if I move a control on the screen, or change anything on the screen (even if I change it back) and then save the form, it regenerates the Designer.vb file and the AutoScaleDimensions goes from (6.0!, 13.0!) to (8.0!, 16.0!). And the client size changes (634, 455) to (845, 560).
Note that none of the properties displayed for the form in design mode have changed.
(insert Twilight Zone music here)
Is there some way to regenerate the designer.vb files other than changing each form (there are a lot of them)? (Rebuilding the solution doesn't do it, in case you're wondering).
Does this mean if I want to deploy an application on a computer with a higher resolution than mine, I will have to handle the sizing in the code?
Can I now justify buying a 30" monitor? Or should I just hook my laptop up to my 42" plasma monitor/tv? Wow. Just think of the real estate. Hmmmm.
Robin S. ---------------------------
"Stephany Young" <noone@localhostwrote in message news:e6**************@TK2MSFTNGP02.phx.gbl...
>>Maybe you should have asked Santa for a nice brand spanking new monitor :)
Seriously though ...
What happens if you plug another monitor into your computer? If it still happens then it would be more likely to be a problem with your video card than your monitor.
You might want to try tweaking whatever video card and/or monitor settings you can find - like refresh rate etc.
Apart from that it's like 'how long is a piece of string?'.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message news:KP******************************@comcast.co m... Hello to all, and happy new year!
I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form. I haven't figured out yet if there's a pattern to it. I compared two forms -- one that looks okay and one that gets cropped, and aside from the size and the accept button and the cancel button, their properties are identical. I don't see anything in the code that is modifying the size of the form, either.
The forms are all displayed as dialogs, if that matters.
Has anybody seen something like this before, or do you have any ideas how I can figure out how to fix it?
I talked to the original author of the application, and it looks fine on his screen and on other people's screens who have looked at the application.
I'd appreciate any advice you can offer me. BTW, I'm using VB2005.
Thanks in advance, Robin S.
"Bruce W. Darby" <kr****@comcast.netwrote in message
news:R7******************************@comcast.com. ..
>
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Gr******************************@comcast.com. ..
>Can I now justify buying a 30" monitor? Or should I just hook my laptop up to my 42" plasma monitor/tv? Wow. Just think of the real estate. Hmmmm.
Robin S.
Hook your laptop up to your TV and send me the 20" monitor????? :)
DOH!!!
That sounds like a great idea! You have to pay the shipping, though,
which will be $250. Paypal or cashier's check?
LOL,
Robin S.
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Mc******************************@comcast.com. ..
>
"Bruce W. Darby" <kr****@comcast.netwrote in message
news:R7******************************@comcast.com. ..
>> "RobinS" <Ro****@NoSpam.yah.nonewrote in message news:Gr******************************@comcast.com ...
That sounds like a great idea! You have to pay the shipping, though,
which will be $250. Paypal or cashier's check?
LOL,
Robin S.
Only $250.00??? A steal at any price.... uh.... checks in the mail????
hehehehe
"Bruce W. Darby" <kr****@comcast.netwrote in message
news:bq******************************@comcast.com. ..
>
"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:Mc******************************@comcast.com. ..
>> "Bruce W. Darby" <kr****@comcast.netwrote in message news:R7******************************@comcast.com ...
>>> "RobinS" <Ro****@NoSpam.yah.nonewrote in message news:Gr******************************@comcast.co m...
>That sounds like a great idea! You have to pay the shipping, though, which will be $250. Paypal or cashier's check?
LOL, Robin S.
Only $250.00??? A steal at any price.... uh.... checks in the mail????
hehehehe
If you live in the USA, you, too, can shop at Costco!
I'll ship it as soon as the check clears. LOL.
(Then I can buy a 24" one!)
Robin S. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Charles Blaquière |
last post by:
As part of my explorations in liquid design, I'm exploring ways to use the
overflow: hidden property -- when browser windows become too narrow, I want
(some) images to get cropped rather than have...
|
by: Jelmer |
last post by:
Hi I've been trying to create an addin similar to Find & Replace from Rick
Fisher that looks thru your tables / queries / forms / modules etc.. for a
reference to a string and optionally let's you...
|
by: David Battams |
last post by:
Hi there,
Quick question about VC.Net forms.
The second I add a picture pox with associated image to my form, my app goes
off into the weeds in the form designer code at the line where it...
|
by: Jeff Molby |
last post by:
I'm quite experienced with ASP.Net, so I know the language pretty well, but
this is my first significant windows app in VB.Net, so I haven't encountered
many of the quirks yet. I'm using VB 2003.
...
|
by: Crirus |
last post by:
I need to derive the Windows.Forms.Control 2 times so I design a class like
this
Public Class BMControl
Inherits System.Windows.Forms.UserControl
Public Class MapControl
Inherits BMControl
|
by: Ian Rutherford |
last post by:
I'm currently trying to do something with VB .net that I'm having a lot of
difficulty with. Basically, I
need to be able to display a form on any monitor I choose. So, I have to
enumerate all...
|
by: Maileen |
last post by:
Hi,
I want to use the control MS Forms 2.0 Multipage because it allows to
display several pages without displaying the Tab on the top (even if in
design mode).
However, when i place a simple...
|
by: =?Utf-8?B?VGVycmFuY2U=?= |
last post by:
I have a question about functionality I was wondering if anyone ever tried.
Here is my problem/question. I'm currently in the motions of learning C# with
that said I created a windows application...
|
by: ronaldlarsen |
last post by:
Somehow I have separated all of my form windows and code windows from the main visual basic design window. These form windows do not appear as a subset of the design window. When I start vb and...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| | |