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?
Last edited by deanat78; Dec 30th, 2005 at 01:08 AM.
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?
Last edited by RobDog888; Dec 30th, 2005 at 12:28 AM.
I just found out now that you can post files to your messages...
Ok, the exe is called Alternative Splicing, but if you're scared it has a virus then open up the project...
and don't commend on my inefficient code, i KNOW it's really bad.... since its not a comp sci exercise, im not really being very efficient..
the width of the form should be around 90% or a bit more or your screen if youre on 1024*768
and to exit, you need to press on the Home button and then quit..
So does it fit your screens?
edited::: SORRY for posting another thread! I guess i accidently pressed New Thread instead of Reply in my other thread... sorry..
Last edited by RobDog888; Dec 30th, 2005 at 12:26 AM.
Reason: removed exe files from zip attachment
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...
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..
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!
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.
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.
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
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...
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)
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.
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!