| | |
Visual basic 6 picture background problem
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 47
Reputation:
Solved Threads: 0
Greetings!
I designed a simple program in VB6 with a background picture in my main menu form. but when i try to install this program to other computer having different resolution or sized in the screen settings my background picture appears not fit in the entire screen.
I used jpeg picture with a size of 800 x 600. same resolution of my working station screen resolution. when i try to install this program to other computer with the settings of 1024 x 768 resolution my picture background appear small and not fit to as menu background.
Anybody can help me how to set my background picture applicable to all screen resolution settings.
note:
my form is not mdiform coz this is the requirements.
thank in advance.
I designed a simple program in VB6 with a background picture in my main menu form. but when i try to install this program to other computer having different resolution or sized in the screen settings my background picture appears not fit in the entire screen.
I used jpeg picture with a size of 800 x 600. same resolution of my working station screen resolution. when i try to install this program to other computer with the settings of 1024 x 768 resolution my picture background appear small and not fit to as menu background.
Anybody can help me how to set my background picture applicable to all screen resolution settings.
note:
my form is not mdiform coz this is the requirements.
thank in advance.
Last edited by locsin; Nov 6th, 2007 at 3:21 am. Reason: i forget the programming language
This is a guess:
(on Form_load event)
picture1.width=screen.width
picture1.height=screen.height
try it!
(on Form_load event)
picture1.width=screen.width
picture1.height=screen.height
try it!
•
•
Join Date: Apr 2007
Posts: 102
Reputation:
Solved Threads: 14
I ran into this on a commercial application I sell. It seems some of the new screens, particularly wide screen flat panels, return a different TwipsPerPixel. I was able to work around the issue by comparing the design resolution with the screen resolution being used (Screen.Width / Screen.TwipsPerPixelX) and adjusting the controls proportionally.
I found that it didn't matter if the picture was ont he form or in a control. Both were effected, as were text boxes and label controls. Find a widescreen o use for testing and take a look at what it does to your program.
I found that it didn't matter if the picture was ont he form or in a control. Both were effected, as were text boxes and label controls. Find a widescreen o use for testing and take a look at what it does to your program.
![]() |
Similar Threads
- Desktop Problem (Windows NT / 2000 / XP)
- Locked Background + Virus (Viruses, Spyware and other Nasties)
- Windows xp instilation problem (Windows NT / 2000 / XP)
- problem with win98 rundll32.exe (Viruses, Spyware and other Nasties)
- Noob help: Using two monitors on one PC (Monitors, Displays and Video Cards)
- Picture Size problem (Visual Basic 4 / 5 / 6)
- Please help me find problem in code :) (C#)
- moniter picture twitching problem (Monitors, Displays and Video Cards)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Facing problem with creating different timezone on a vb form
- Next Thread: SQL in DataEnvironment....????
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






