|
-
Feb 6th, 2002, 06:48 AM
#1
Thread Starter
Hyperactive Member
Loading A Graphic
I am trying to create a program, which has a customizable user interface, therefore, I would like to know how can I save a picture chosen by the user for his/her background, and so that it can be loaded the next time the program is opened. Are there many ways through which i can do it? Could somebody tell me the easiest way i could do this as i am still a beginner, i hope things could be simplified. THanx.
-
Feb 6th, 2002, 09:14 AM
#2
Hyperactive Member
VB Code:
Form1.Picture = LoadPicture("C:\MyPicture.bmp")
And that changes Form1's background picture to whatever bitmap you choose.
[vbcode]
' comment
Rem remark
[/vbcode]
-
Feb 6th, 2002, 09:20 AM
#3
Thread Starter
Hyperactive Member
saving?
WHat about saving the picture? SO that i can reload it the next time i open that same program...
-
Feb 6th, 2002, 10:25 AM
#4
Addicted Member
Do you want to "save the picture" or just "save the file path to the image"?
If you just want to save the file path, then you can just write a quick .ini file.
take care,
shurijo
-
Feb 6th, 2002, 11:01 AM
#5
Thread Starter
Hyperactive Member
which is better?
Er........ok, if i save the picture, don't i need the path?
sorry, i'm an amateur
which do u think is better, with less hassle?
at the least, the bottom line is to be able to allow the user to save his/her preferred background so it can be loaded nex time he/she starts the prog.
-
Feb 6th, 2002, 03:49 PM
#6
Good Ol' Platypus
You should just save the path to the file.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Feb 6th, 2002, 04:29 PM
#7
Addicted Member
http://www.vb-world.net/files/tip17.html
Here is a tutorial on how to use ini files to read and write to them.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|