Results 1 to 34 of 34

Thread: Change resolution of form based on screen resolution[REOPENED]

  1. #1

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Exclamation Change resolution of form based on screen resolution[REOPENED]

    OK..here it is...i searched on the forums, and i tried a few things...and they dint really seem to work...so, Lemme lay out my problem.

    I have a very high screen resolution: 1400x1050 pixels on my laptop..and Im designing my app on this.

    My colleagye tried it out on his laptop (which had lesser resolution), and the application did not fit on his laptop...the buttons were dragging out of the screen space.

    So, I want my application to automatically resize/adsjust based upon the screen resolution. I found some similar fourms, and I tried a few things suggested by developers..but, that did not really work out for me.

    plz helpppp!!
    Last edited by perlmonk; Feb 21st, 2005 at 11:18 AM.

  2. #2

  3. #3

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution

    Quote Originally Posted by RhinoBull
    Your best bet is to use some resizer control, however you should (but not necessary) use smaller resolution like 1024x768 (which is most common these days) to design your forms.
    so, if i change my resolution now to 1024x768...and resize the form...that shud show up OK on other laptopns of resolution 1024x768 and higher??

  4. #4
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: Change resolution of form based on screen resolution

    The only other option you have is to place code in the resize event of the form that will position all of your form components programatically at runtime.

    This tends to be ok if you have a few items, a grid, a few buttons etc. If you have lots on a form, group some items in picture box's or frames and move the group around.

    Then, no matter what size the screen, your components will juggle around to suit.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  5. #5

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution

    Quote Originally Posted by David.Poundall
    The only other option you have is to place code in the resize event of the form that will position all of your form components programatically at runtime.

    This tends to be ok if you have a few items, a grid, a few buttons etc. If you have lots on a form, group some items in picture box's or frames and move the group around.

    Then, no matter what size the screen, your components will juggle around to suit.
    thanks for your answer...how do i go about putting code in the resize event of the form....do i set the resize event in the properties.....i'm a little bit lost.

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Change resolution of form based on screen resolution

    Quote Originally Posted by David.Poundall
    The only other option you have is to place code in the resize event of the form that will position all of your form components programatically at runtime.

    This tends to be ok if you have a few items, a grid, a few buttons etc. If you have lots on a form, group some items in picture box's or frames and move the group around.

    Then, no matter what size the screen, your components will juggle around to suit.
    This could be a good option, however (and I mean no disrespect to David's recommedation at all) there is one major problem that usually comes along - FONTS. Those little beasts act like evils in most cases so that's why I recommended some resizer control (most of them will take care of this issue but better find commercial product with support).

    Cheers all.

  7. #7
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Change resolution of form based on screen resolution

    Quote Originally Posted by perlmonk
    so, if i change my resolution now to 1024x768...and resize the form...that shud show up OK on other laptopns of resolution 1024x768 and higher??
    In general - answer is YES.

  8. #8

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Unhappy Re: Change resolution of form based on screen resolution

    well..im kinda skeptical using some other software like resizer, because i have to distribute this app to other admins as well....if i use resizer...all those pple who have to use this app will have to download the resizer as well....is that right?

  9. #9
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Change resolution of form based on screen resolution

    It's totally safe and/or OK to use third party's controls/dll -all you'd have to do is to build a distribution package to include ALL DLLs/OCXs your project is utilizing (which is almost mandatory thing anyway) ... But how did you distributed you app in the first place - copy/paste executable wouldn't work (if you're not aware of that yet) ...

  10. #10

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Unhappy Re: Change resolution of form based on screen resolution

    Quote Originally Posted by RhinoBull
    It's totally safe and/or OK to use third party's controls/dll -all you'd have to do is to build a distribution package to include ALL DLLs/OCXs your project is utilizing (which is almost mandatory thing anyway) ... But how did you distributed you app in the first place - copy/paste executable wouldn't work (if you're not aware of that yet) ...
    well, i made an executable, and i zipped it and emailed it to my colleague(s). it worked, except for the resolution which was screwing everyhting up.

    i'll try finding a resizer...so far, all that ive found are for vb.net

  11. #11

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution

    I just found this:

    http://www.gold-software.com/ActiveR...eview19432.htm

    do you think I can incorporate this into my app>?

  12. #12

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

    Re: Change resolution of form based on screen resolution

    Tell us how it works. They also sell a version

    http://www.vbgold.com./

  14. #14

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution

    oh boy....i downloaded the free version (lite), and i have no idea how to incorporate that or use that as a resizer.

    can someone help???

  15. #15
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Change resolution of form based on screen resolution

    You might need to install it first so if you've done that part then
    - add control to your components (go to components and select it from the list)
    - place control on the form - most of them (resizers) need only this action so you won't need to program it.

  16. #16

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution

    Quote Originally Posted by RhinoBull
    You might need to install it first so if you've done that part then
    - add control to your components (go to components and select it from the list)
    - place control on the form - most of them (resizers) need only this action so you won't need to program it.
    I jus found the help file tht came with the pkg...looks like i will have to buy the GOLD product...does anyone have any free code that i can add and have my app resized??? PLZ HELPPP...im getting so unbearably upset by this issue...

  17. #17

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution

    hey, i jus found the OCX file (from the same softeware...the lite versionis free) and added it as you guys suggested...

    THANK YOU SO MUCH...you guys are awesome!!!!

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

    Re: Change resolution of form based on screen resolution[RESOLVED]

    None of them are free. I just wonder if they work in 100% if the cases.

    RB - Yours stops working randomly if you don't buy it. Not good.

    Download the free fully functional evaluation including comprehensive documentation and a quick start guide in the Help and VB6 samples.

    Limitation: the unregistered version is limited to 30 days so you can test and evaluate as much as you want. However, it will randomly stop working if used in compiled projects. When you purchase Resizer XT, you will receive a serial code that will allow you to compile without limitations.

  19. #19
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Change resolution of form based on screen resolution[RESOLVED]

    Quote Originally Posted by dglienna
    ... RB - Yours stops working randomly if you don't buy it. Not good.
    When did I say that it has to be free - in fact I always try to point out that commercial software si the way to go ...
    ... so that's why I recommended some resizer control (most of them will take care of this issue but better find commercial product with support).

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

    Re: Change resolution of form based on screen resolution[RESOLVED]

    I thought you were recommending that product for its performance, or price.
    I woudn't buy one without a money-back guarantee, but that's why I don't have one. If someone recommends one for its preformance, the I'll look at it
    It would be nice, but isn't necessary. I think the only way would be to re-write the app planning for resizable forms. Writing for 1024x868 (?) isn't the worst thing that I could have done, and it doesn't look BAD at 800x600. Just not perfect.

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

    Re: Change resolution of form based on screen resolution

    Quote Originally Posted by perlmonk
    hey, i jus found the OCX file (from the same softeware...the lite versionis free) and added it as you guys suggested...

    THANK YOU SO MUCH...you guys are awesome!!!!

    So, how did it work out? Which one did you use? I am thinking of one of them.

  22. #22

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution[RESOLVED]

    well, the weekend is over, and my moment of joy is over too with it.
    the file works on my system, but when i compiled the app and sent my colleague the .exe...he got the message "OCX not registered" upon running it.

    its working fine on my system...i dont know for how long...but..oh well-----

    i guess i will have to find an alternate....!#$#!$!@$!@ this

    Edit: I am going to re-open this issue, in hope that someone can lend me some code to help me out...HELPP

  23. #23
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Change resolution of form based on screen resolution[RESOLVED]

    Quote Originally Posted by perlmonk
    well, the weekend is over, and my moment of joy is over too with it.
    the file works on my system, but when i compiled the app and sent my colleague the .exe...he got the message "OCX not registered" upon running it.

    its working fine on my system...i dont know for how long...but..oh well-----

    i guess i will have to find an alternate....!#$#!$!@$!@ this

    Edit: I am going to re-open this issue, in hope that someone can lend me some code to help me out...HELPP
    Seems like you need to re-create you INSTALL/SETUP package to include the new OCX - how did you get your app installed on your colleague's system originally?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  24. #24

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution[RESOLVED]

    Quote Originally Posted by szlamany
    Seems like you need to re-create you INSTALL/SETUP package to include the new OCX - how did you get your app installed on your colleague's system originally?
    well...i just compiled the app using the option under the file tab-"Make app.exe" , and i zipped and emailed it to my colleague....is that the wrong way to go about it?

  25. #25
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Change resolution of form based on screen resolution[REOPENED]

    Yes - you need more...

    Go into START>PROGRAMS>MS VISUAL STUDIOS>MS VS6 TOOLS>Package and Deployment Wizard.

    This will create a setup package that will install that OCX.

    I'm guessing the only way you got around this is that you gave this app to someone who already had VS6 installed on their system??

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  26. #26

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution[REOPENED]

    Quote Originally Posted by szlamany
    Yes - you need more...

    Go into START>PROGRAMS>MS VISUAL STUDIOS>MS VS6 TOOLS>Package and Deployment Wizard.

    This will create a setup package that will install that OCX.

    I'm guessing the only way you got around this is that you gave this app to someone who already had VS6 installed on their system??
    wow...i never knew that...im still a beginner when it comes to VB..thanks a lot for this advice. One more question...after creating the setup...I see cab files and other files...do i need to send the whole bundle to someone who wants to install this app...or can i just email the setup??

  27. #27
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Change resolution of form based on screen resolution[REOPENED]

    Quote Originally Posted by perlmonk
    wow...i never knew that...im still a beginner when it comes to VB..thanks a lot for this advice. One more question...after creating the setup...I see cab files and other files...do i need to send the whole bundle to someone who wants to install this app...or can i just email the setup??
    This is not an area of expertise for me - but I believe you zip up the whole bundle - folder, subfolder and all.

    Also, some of the stuff created (SETUP.LST for example) can be looked at with NOTEPAD - it controls what get's setup.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  28. #28

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution[REOPENED]

    Quote Originally Posted by szlamany
    This is not an area of expertise for me - but I believe you zip up the whole bundle - folder, subfolder and all.

    Also, some of the stuff created (SETUP.LST for example) can be looked at with NOTEPAD - it controls what get's setup.
    sweeet...will do...thanks!

    If anyone has any code for a *FREE* resizer and if you could post it...i believe that wud help tons of people....thanks in advance!!!!

  29. #29

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution[RESOLVED]

    Quote Originally Posted by dglienna
    None of them are free. I just wonder if they work in 100% if the cases.

    RB - Yours stops working randomly if you don't buy it. Not good.
    Hey David:

    I downloaded and am using the LITE version. I did not find the above quote in the license agreement. Actually..lemme copy n paste the license agreement with this for all to see n comment.

    [TEXT]

    VBGOLD SOFTWARE END USER LICENSE AGREEMENT

    Terms and Conditions

    The software which accompanies this license (the "Software") is the property of VBGold Software and is protected by international copyright laws. While VBGold Software continues to own the Software, you will have certain rights to use the Software after your acceptance of this agreement. Your rights and obligations with respect to the use of this Software are as follows:

    Note: If the Software is a "free version" or "Lite version" of the original version, some of the terms below may not apply.

    YOU MAY:
    1. Use one copy of the Software on a single computer.

    2. Make one copy of the Software for archival purposes, or copy the software onto the hard disk of your computer and retain the original for archival purposes.

    3. Use the Software on a network, provided that you have a licensed copy of the Software for each computer that can access the Software over that network.

    4. If the Software is an ActiveX control or component that can be used within or accessed from other applications, you have the right to use it in any type of applications that you develop, including commercial applications. The runtimes are royalty-free.

    5. After a written and signed letter to VBGold Software, transfer the Software on a permanent basis to another person or entity, provided that you retain no copies of the Software and the transferee agrees to the terms of this agreement.


    YOU MAY NOT:
    1. Sublicense, rent or lease any portion of the Software.

    2. Reverse engineer, decompile, disassemble, modify, translate, make any attempt to discover the source code of the Software, or create derivative works from the Software; or

    3. Use any modified binaries (executables) of the Software (executables that are modified or cracked) or use any registration keys that were not supplied to you by VBGold or one of its resellers.
    YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGES TO YOUR COMPUTER OR ANY LOSS OR DESTRUCTION OF DATA IN CASE YOU USE ANY SUCH MODIFIED BINARIES OR REGISTRATION KEYS. BE AWARE THAT SUCH MODIFIED BINARIES MAY NOT FUNCTION PROPERLY DUE TO THE BUILT-IN ANTI-CRACKING COUNTER-MEASURES AND MAY RESULT IN SEVERE LOSS OF DATA. YOU HAVE BEEN WARRNED!


    LIMITED WARRANTY:
    VBGold Software does not warrant that the Software will meet your requirements or that operation of the Software will be uninterrupted or that the Software will be error-free.

    The above warranty is exclusive and overrides all other warranties, whether express or implied, including the implied warranties of merchantability, fitness for a particular purpose and noninfringement.

    DISCLAIMER OF DAMAGES:
    The Software is being delivered to you "AS IS". VBGold makes no warranty as to its use or performance. Regardless of whether any remedy set forth herein fails of its essential purpose, in no event will VBGold Software be liable to you for any special, consequential, indirect or similar damages, including any lost profits or lost data arising out of the use or inability to use the software even if VBGold Software has been advised of the possibility of such damages.

    In case that the laws of your country or state do not allow the limitation or exclusion of liability for incidental or consequential damages, the above limitation or exclusion may not apply to you. However, in no case shall VBGold's liability exceed the purchase price of the Software. The disclaimers and limitations set forth above will apply regardless of whether you accept the Software.


    GOVERNING LAW AND GENERAL PROVISIONS:
    This Agreement will be governed by the laws of Greece, excluding the application of its conflicts of law rules. This Agreement will not be governed by the United Nations Convention on Contracts for the International Sale of Goods, the application of which is expressly excluded. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall remain valid and enforceable according to its terms. This Agreement shall automatically terminate upon failure to comply with its terms from your side. This Agreement may only be modified in writing, signed by the owner of VBGold Software.


    VBGold Software
    Web Site: http://www.vbgold.com

    Contact Email:
    General inquiries: [email protected]
    Sales & marketing: [email protected]
    Customer support: [email protected]

    [/TEXT]

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

    Re: Change resolution of form based on screen resolution[REOPENED]

    Might have been the other program. Glad to hear that its working.

  31. #31

    Thread Starter
    Addicted Member perlmonk's Avatar
    Join Date
    Jan 2005
    Posts
    138

    Re: Change resolution of form based on screen resolution[REOPENED]

    Quote Originally Posted by dglienna
    Might have been the other program. Glad to hear that its working.
    sweetness

    but this time, im being a bit reserved...will post back in case this dies on me.

  32. #32
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Change resolution of form based on screen resolution[REOPENED]

    P.S. Re: P&D Wizard... You only need to send along the Setup.EXE and the .CAB file(s) generated.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  33. #33
    Lively Member
    Join Date
    Mar 2010
    Posts
    71

    Re: Change resolution of form based on screen resolution[REOPENED]

    Sorry for 'recovering' this post, but is the app stated upside free? It will work forever?

    Anyone knows any other better free?

  34. #34
    Lively Member
    Join Date
    Mar 2010
    Posts
    71

    Re: Change resolution of form based on screen resolution[REOPENED]

    Could you please help me here?

    Sorry for double posting.

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