473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Picture as Background

How to put a Picture as background for a form in vb6???
Jan 25 '08 #1
11 8836
QVeen72
1,445 Expert 1GB
Hi,

Try this in FormLoad:

Me.Picture = LoadPicture("C:\Pict1.bmp")

Regards
Veena
Jan 25 '08 #2
Hi,

Try this in FormLoad:

Me.Picture = LoadPicture("C:\Pict1.bmp")

Regards
Veena


this is not working...
Jan 25 '08 #3
QVeen72
1,445 Expert 1GB
Hi,

Did you change the Picture Name..?
Where have you written the code..?

Regards
Veena
Jan 25 '08 #4
lotus18
866 512MB
There are some image formats that cannot be read by VB6.0 (e.g. .png). Try also the color mode of the image if it is in rgb or cmyk mode. : )

Rey Sean
Jan 25 '08 #5
werks
220 100+
How to put a Picture as background for a form in vb6???
in the properties of the Form you can insert a picture there..


Better Than Yesterday
Jan 25 '08 #6
Hi,

Did you change the Picture Name..?
Where have you written the code..?

Regards
Veena

ofcourse i changed the picture name.
i have written the code in form load event

private sub form_load()

me.picture=loadpicture("C:\Documents and Settings\Administrator\Desktop\From Zero\image.jpeg")

end sub
Jan 25 '08 #7
lotus18
866 512MB
ofcourse i changed the picture name.
i have written the code in form load event

private sub form_load()

me.picture=loadpicture("C:\Documents and Settings\Administrator\Desktop\From Zero\image.jpeg")

end sub
Hi

Did you try it on form properties as suggested by werks?

Rey Sean
Jan 25 '08 #8
well there are two main alternatives you will use first

you can just go to your toolbox get the image control or picture box control
put it to the form and go to the propertise of that image control and click where there is pictureand locate the picture.

secondly you can load it on run time.
me.picture = loadpicture("location of the picture")
try it out.
Jan 25 '08 #9
QVeen72
1,445 Expert 1GB
Hi,

I guess, LoadPicture dosent support ".jpeg" extensions, change it to ".jpg" and check

me.picture=loadpicture("C:\Documents and Settings\Administrator\Desktop\From Zero\image.jpg")


Regards
Veena
Jan 26 '08 #10
Killer42
8,435 Expert 8TB
I think before we make any more guesses, it would be very helpful if mclueless tells us what "not working" actually means. We're working in the dark here - it could be anything from "that's not the right image" to "the computer blew up and destroyed the house". Chances are it's somewhere between these extremes, of course.
Jan 27 '08 #11
Ali Rizwan
925 512MB
How to put a Picture as background for a form in vb6???
Here comes an other problem to you that if the picture resolution is larger than form it will not appears full or if it is smaller then other portion of form will remain uncolored.
Like if your form is on 1024x768 resolution and picture you are using as background is of 640xsomething then it will not cover the whole form.
You can check this by applying...
Regards
>> ALI<<
Jan 27 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Chris Coho, Jr. | last post by:
Ok, I'll explain the whole problem because there may be several ways to solve this and hopefully someone knows one. What I'm doing is creating a specialty template editor, similar to say a corel...
2
by: Thomas Wesenigk | last post by:
Hello, I have a HTML like this: <p style="text-align:left;"> </p>
0
by: Alain. | last post by:
I use a picture for the background for a form (picture property). This small (6ko) attached file make a mosaic (property Picture Tiling set to yes). The problem : with this image, the form seems...
6
by: John Ortt | last post by:
Hi there everyone, I have a part info form which has a faded image of our company logo as a background. I want to replace the faded image with a bright red warning image on items which have run...
2
by: Regnab | last post by:
I've got a YES/NO section of a report I'm making. Depending on certain values, I want to circle either YES or NO. I've got the code working so it'll show or hide the circle, but I can't seem to get...
4
by: Andre Nogueira | last post by:
Hi there. I have one question... How can I create a bitmap (programmatically), paint it to a picture box and have a transparent background? I don't know what will be below the picturebox because...
3
by: find clausen | last post by:
Is it possible to get the width of a picture: <img src="../graphics/press/bw21.jpg" width=400 height=555 alt="" border="0"> the make a box be exactly the width of the picture: ...
3
by: giladp1 | last post by:
Hi, I noticed that by adding background pictures to my forms the application looks so much more interesting and professional. I want to keep just texture simple backgrounds in order to prevent...
1
by: cccc2046 | last post by:
hi, i am a rookies in ASP.Net(C#). and i am using visual studio 2005 i am creating a webpages.and using CSS, Master page, and Content page in my CSS ( myStyle.css) i set my background picture...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.