Results 1 to 19 of 19

Thread: help.. maximum width of a form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    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?
    Last edited by deanat78; Dec 30th, 2005 at 01:08 AM.
    Dean

  2. #2
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    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...
    Last edited by RobDog888; Dec 30th, 2005 at 12:28 AM.

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    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?
    Last edited by RobDog888; Dec 30th, 2005 at 12:28 AM.
    Dean

  4. #4
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    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.
    Last edited by RobDog888; Dec 30th, 2005 at 12:27 AM.

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    my code..

    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..
    Attached Files Attached Files
    Last edited by RobDog888; Dec 30th, 2005 at 12:26 AM. Reason: removed exe files from zip attachment
    Dean

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Size issues with Windows 98..

    Threads merged.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    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?
    Last edited by jcis; Dec 30th, 2005 at 12:57 AM.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    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
    Dean

  9. #9
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: help.. just run my code and see if it works on your PC...

    Did you copy all the files? .frx included?

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    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..
    Dean

  11. #11
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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!

  12. #12
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    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.

  13. #13
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  14. #14
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    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
    Dean

  16. #16
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    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)

  17. #17
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  18. #18
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    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.
    Frans

  19. #19

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Location
    too far from israel
    Posts
    28

    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!
    Dean

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width