help.. maximum width of a form
Hey... Remember me, the rude kid that's doing a biology project..?
OK, so I was supposed to finish my project by tomorrow because I'm going to Florida, but I didn't finish on time.. So I'm going to have to bring my dad's laptop with us, and I want to work on my project there. Now, my dad's laptop is from like 1998.. it has Windows 98, and when I transferred my VB stuff there, I saw that the form is being cut off .. Now, the resolution is the same on both comptuers, 1024X768
But I noticed that the Width property of the form is 14000 in my computer (I guess VB doesn't use pixels as its units...), but on the laptop it's 10240, and I can't change it to anything greater than that. So obviously that's why my form is being cut off... which is VERY bad for me... So is that form width limit because of Windows 98? Did anyone here hear about that issue and knows if there's any way to fix it?
Re: Size issues with Windows 98..
I have VB6 running on Windows 98 and XP at work and I have never had that issue.
The only solution I see is redesign your form to fit the laptop...
Re: Size issues with Windows 98..
But I can't... I have somethign that is relly long, its about 900 pixels long... And since the resolutino is the same I was sure there'll be no problem.. Are you on windows 98 right now? Could you maybe check what the maximum form width is for you?
Can i somehow put my exe here so you guys can see if you can see the whole thing?
Re: Size issues with Windows 98..
Not at work at the moment, sorry.
Dont put the .exe no one will look at it, put the code so we can open it up and run it. Put it into .zip file.
Re: Size issues with Windows 98..
Re: help.. just run my code and see if it works on your PC...
Deanat, your Form Fit ok in my screen, around 90% as you said.
My res = 1024 x 768
Are you really sure that your dad's laptop is in 1024 x 768?
That you say, should happend if laptop res = 800 x 600
Edit: By "being cut off" you mean its bigger than the screen or smaller than what it was in your computer?
Re: help.. just run my code and see if it works on your PC...
Yes, I'm sure, I checked... thanks for trying it out..
On my comuter, the limit to the form width is 15360, and the width that I am using is 14295 so it works, but on my dad's laptop from some reason I can't go beyond 10240... Do you know anything about those limits and if it's possible to change them? Maybe a newer VB version? although it's VB6 on both..
edited: i wish it was just smaller..that would be fine.. but a lot is not showing up, the furthest it goes is around the Help button , on the top, which is about 3/4 of what it should be... and it doesnt go the whole way down too, but i don't remember where it cuts it off
so yes, bigger than the screen
Re: help.. just run my code and see if it works on your PC...
Did you copy all the files? .frx included?
Re: help.. just run my code and see if it works on your PC...
Yes, I zipped my folder and unzipped it on his laptop
I'm pretty sure it's because I can't make the form width be 14295 on his laptop, if I could just somehow get around that..
Re: help.. maximum width of a form
You could buy a program called ActiveResizer that will resize the forms to fit the screens on any resolution. It's from vbgold.com, and they have a trial version that you can use to test it out. I've used it for a few projects that I didn't feel like re-writing for people that had less resolutions on their systems. My 1024x768 forms did not look good at 800x600. Try it out. It's only about $40 for a lifetime copy. You just copy a control to every form that you want resized automatically, and then compile it. It works well!
Re: help.. maximum width of a form
Quote:
Originally Posted by dglienna
You could buy a program called ActiveResizer that will resize the forms to fit the screens on any resolution. It's from vbgold.com, and they have a trial version that you can use to test it out. I've used it for a few projects that I didn't feel like re-writing for people that had less resolutions on their systems. My 1024x768 forms did not look good at 800x600. Try it out. It's only about $40 for a lifetime copy. You just copy a control to every form that you want resized automatically, and then compile it. It works well!
In don't think our "kid that's doing a biology project" (his words) will buy it :)
And its a bit strange whats happening here, because he is using the same resolutions in both computers. :confused:
Re: help.. maximum width of a form
He might have form sizes hard-coded, which wouldn't work on smaller screens, plus the drivers for lcd laptop screens may be different, which the OS will pick up. It wasn't worth the headache when I bought it, but I have used it on 3 different projects that I've had to finish. Kind of like money in the bank, I think.
Re: help.. maximum width of a form
Also, since its a school project, he may not be able to use commercial or freeware controls and give himself an advantage over other students. He could also get downgraded because of it.
Re: help.. maximum width of a form
Lol, you guys are going too proffesional... Of couse I COULD use it... I'm the only one doing it as a computer program, it's supposed to be a physical model but I thought of programming it to make it look nicer, and be original
so it's not goning to be any kind of advantage.. (actually, it's probably takin me the longest, building ugly cardboard-glue-markers models is way easier) but.... I'm not going to waste 40 dollars on this... And I don't need to, I just want to know why the heck is the limit to the form 10240 on that sutpid laptop??? It's the same visual basic 6, I don't understand this... it's so frustrating.... The fact that the laptop is REALLY old is not supposed to matter, right.. it's the same program..
edited: by the way, what are the measuring units in VB? it's obviously not pixels or inches or cm
Re: help.. just run my code and see if it works on your PC...
Quote:
Originally Posted by jcis
Deanat, your Form Fit ok in my screen, around 90% as you said.
My res = 1024 x 768
Are you really sure that your dad's laptop is in 1024 x 768?
That you say, should happend if laptop res = 800 x 600
Edit: By "being cut off" you mean its bigger than the screen or smaller than what it was in your computer?
i have the same resolution and i loaded it up on my screen and it was the same result. took up about 90% (tried it on many computers in my place, many running win95, 98, me, 2000, xp home and xp pro and got the same result)
Re: help.. maximum width of a form
Quote:
Originally Posted by deanat78
edited: by the way, what are the measuring units in VB? it's obviously not pixels or inches or cm
Twips. A twip (which stands for Twentieth of a Point). It is used as the default measurement in Visual Basic. A twip is 1/1440 of an inch.
Re: help.. maximum width of a form
And the amount of twips in a pixel can be found with the Screen.TwipsPerPixelX and Screen.TwipsPerPixelY functions. I guess they are different from both PC's.
Setting the font size in control panel alters the amount of twips per pixel.
Re: help.. maximum width of a form
OK so if it works fine for all of you, I only have to hope that it will work on my school's computer and on my teacher's.... and I guess I'm going to have to finish my other 3 forms today...Thanks!