-
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!!
-
Re: Change resolution of form based on screen resolution
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.
-
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??
-
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.
-
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.
-
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. :wave:
-
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.
-
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?
-
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) ...
-
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 :cry:
-
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>?
-
Re: Change resolution of form based on screen resolution
Why not but give it the try first.
Here is another one (of many) - http://www.resizer.com/download.htm
-
Re: Change resolution of form based on screen resolution
Tell us how it works. They also sell a version
http://www.vbgold.com./
-
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???
-
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.
-
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... :confused:
-
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!!!! :afrog: :afrog: :afrog: :afrog: :afrog: :afrog: :afrog: :afrog: :afrog:
-
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.
Quote:
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.
-
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 ...
Quote:
... 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).
-
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.
-
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!!!! :afrog: :afrog: :afrog: :afrog: :afrog: :afrog: :afrog: :afrog: :afrog:
So, how did it work out? Which one did you use? I am thinking of one of them.
-
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
-
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?
-
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?
-
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??
-
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??
-
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.
-
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!!!!
-
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]
-
Re: Change resolution of form based on screen resolution[REOPENED]
Might have been the other program. Glad to hear that its working.
-
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 :cool:
but this time, im being a bit reserved...will post back in case this dies on me.
-
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.
-
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?
-
Re: Change resolution of form based on screen resolution[REOPENED]
Could you please help me here?
Sorry for double posting.