Click here to Skip to main content
15,886,509 members
Please Sign up or sign in to vote.
2.67/5 (3 votes)
See more:
Hello Guys,

I want to make a windows application for desktop background setting or screensaver setting but i don't have any idea.

Kindly help me.

Thank you in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Dec-11 12:51pm    
What is "Windows Applucation". Tag it properly: WPF, Forms, what?
--SA
Sumit Kumar Singh India 26-Dec-11 13:53pm    
Window Form
Sergey Alexandrovich Kryukov 26-Dec-11 12:52pm    
Not a question. What do you want to achieve, why, what's the problem?
--SA

If you don't have any idea search google and once you start the development of the application and if you get any specific problem then place it in codeproject

WallPaper Changer for .NET[^]
 
Share this answer
 
v2
Comments
Sumit Kumar Singh India 26-Dec-11 13:58pm    
actualy did somthing but that's not working properly, when i changed the image my desktop screen become blue screen nothing else and i already searched on google but i don't got same code:


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
[DllImport("user32.dll")]
private static extern bool SystemParametersInfo(uint uiAction, uint uiParam, string pvParam, uint fWinIni);
const uint SPI_SETDESKWALLPAPER = 0x14;
const uint SPIF_UPDATEINIFILE = 0x01;
private void Form2_Load(object sender, EventArgs e)
{

}
public void SetDWallpaper(string path)
{
//SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, path, SPIF_UPDATEINIFILE);
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, path, SPIF_UPDATEINIFILE);
}
//private void btnset_Click(object sender, EventArgs e)
//{
// SetDWallpaper(fname);
//}
string fname = "";

private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog obj = new OpenFileDialog();
if (obj.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = Image.FromFile(obj.FileName);
fname = obj.FileName;
}
}

private void button2_Click(object sender, EventArgs e)
{
SetDWallpaper(fname);
}

private void pictureBox1_Click(object sender, EventArgs e)
{

}

}
}



kindly help me it's urgent
theanil 27-Dec-11 12:59pm    
i got a cp article which is working properly on my system..
i have updated my answer.
Hello,
I have found this link that maybe ansver to your question :


Wallpaper Changer[^]

carefully,carefully,carefully :)

Read the Article, watch out for "See also.." on the right column of the web page, there are many other solutions.
I was surprised how many softwer solutions I found within so little time I have been member of codeproject,
just exploring the Articles.


All the best,
Perić Željko
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900