|
-
May 12th, 2000, 11:07 AM
#1
Thread Starter
Frenzied Member
I have an application for which VB6 will not allow me to to assign a height of 300 to a particular Text Box.
I have other Text boxes on the form which have heights of 285 Twips. When I copy & paste one of the short Text Boxes, it initially has height = 285. When I change the width, VB6 reassigns the Height to 360. I have tried assigning a height of 300 by dragging and by setting the Height from the Properties Window. VB6 reassigns 360 for Height.
Any thoughts on this problem?
I had a similar problem with Font properties, which was solved by doing copy & paste of a Box with the Font properties I wanted.
I suppose that removing & reinstalling Visual Studio might fix this anomaly, but I would rather not.
Thanx in advance for any help I get.
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
-
May 12th, 2000, 12:48 PM
#2
Lively Member
it sounds like it is being assigned the smalleset height allwoed based on the size of the font. try setting the font to a smaller size.
-
May 12th, 2000, 09:16 PM
#3
No reinstalling will not help.
If you make the Textbox smaller than the font itself, the letters will be cut off at the end, therefor VB does not allow it. However, if this is what you want, you could set the font to size 8, shrink the Textbox and then set it to size 10.
-
May 13th, 2000, 04:02 AM
#4
Thread Starter
Frenzied Member
Suggestion worked @ Design time, but. . .
Suggestion about decreasing Fontsize to 8 was good advice. It allowed text box to be 300 twips high at design time. Changing FontSize to 10 did not resize it at design time. When text was entered @ run time, the box was resized to 360 twips, so the problem is not yet resolved. I am pretty sure that 10 Point type would not be cut off in box 300 twips high.
There seems to be something strange going on, because the form has two other text boxes which are 285 twips high & contain the same font with FontSize = 10. Numeric data is put into the other two boxes, while the problem box gets alphabetic data. I doubt that numeric versus alpha data is pertinent, but I guess it could have some effect.
I am doing some form resizing to react to different Screen Resolutions. I also change position of some controls, depending on the resizing of the Form (The problem box is repositioned). This is the first time I have tried this type of logic, so I could be having troubles due to not understanding the Event Sequencing. There are some other symptoms that I do not understand yet.
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
-
May 13th, 2000, 01:33 PM
#5
Lively Member
now that i try it, is see what you mean. i have no idea why it does that. i still am guessing that it resizes to the smallest possible. there is space around the font that is part of it, and i guess that needs to be displayed also. you can look into subclassing and try to trap the change of height, don't know if you can tho. other than that, use the smaller font or larger text box. good luck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|