Do you mean that you used the regular code which we use in previous windows versions and it failed with vista ?
Edit : Anyway here is the code :
vb Code:
Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Try the attached project , I don't have vista so you must try it by yourself.
Note : For each different question make a new thread (after searching) to make it easy for other ppl to search & easy for search engines to index the place.
mr yoosha i think that u r from usa, msayed2004 isn' asking for money
i'm a new member here & i'm glad to be right here, i'm from egypt too
and ................
it's enough today
good bye
Last edited by creatingsolutions; Mar 5th, 2007 at 05:32 PM.
Hi,
I'm not shure what to modify. I only need a single .BAS module, without the user needing to install anything. Using the common dialog from COGDLG32.OCX is not an option because not all Windows systems have this installed by default. Can you please modify the module to allow it to accept a filename.
Example;
Public Function SetWallpaper(ImagePath As String, FileName As String, Position As String) As Boolean
Thanks
Kind regards,
Heraut
P.S.
Second, why do you only allow BMP wallpapers? Vista uses JPG, GIF, PNG, etc.
As I said in my PM , no need to change that module just pass the FULL path of the image to that module eg :
vb Code:
SetWallpaper "c:\img.bmp", Center
About the BMP issue as I said before I don't have windows vista so I don't know much about it , in older versions of windows this code will mainly work with BMP only so I restricted other types.
Edit : I attached an example that does not use the common dialog ocx , just APIs.
Last edited by msayed2004; Mar 6th, 2007 at 12:55 PM.
Reason: Adding an example
Try the attached project , I don't have vista so you must try it by yourself.
Note : For each different question make a new thread (after searching) to make it easy for other ppl to search & easy for search engines to index the place.
Strange , vista added your project as an item in the Volume mixer , I am not sure if I can think about something I have no idea about so I suggest that you make a web search or wait until another vista user try it.