This is my latest article. It's about creating your own Desktop customiser, meaning change the screensavers, preview & configure screensavers. Get & set the screen resolution, change your wallpaper, change Visual Styles, and some Theme stuff.

Any critique & comments welcome :

Customising Your Desktop with Visual Basic.NET 2005

Re: Show and Tell Desktop Customiser


No comments

Re: Show and Tell Desktop Customiser

clint 2

Hi Hannes

I have just had a look at your article, fantastic....

I am goin to play around with....

the first thing I want to do is show a screensaver within my application...

at the moment it just opens in it own window...which is not very cool

I just hope I can figure it out

thanks a million



ps...thanks for your reply to my yipee post...

it has been moved and locked


Re: Show and Tell Desktop Customiser


Hello again Clint!

Thanx for your wonderful comments ,and I'm glad you like that article Smile

To answer your question regarding showing the screensaver inside your application.

You could use the SetParent & SendMessage APIs, as demonstrated in this thread :

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2283791&SiteID=1

I modified my code to start the Selected ScreenSaver ( btnDiffScreen_Click ), based on the thread above, like this :

Code Block

Private Sub btnDiffScreen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDiffScreen.Click

Dim LVSel As Integer 'Used To Store Selected Item

If lvScreen.SelectedItems.Count > 0 Then 'If Something Selected In ListView

LVSel = lvScreen.SelectedIndices(0) 'Get Selected Item's Index

End If

Dim proc As Process

proc = Process.Start(ScreenNames(LVSel))


SetParent(proc.MainWindowHandle, picPreviewScreen.Handle)

SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0)

End Sub

It runs the screensaver inside the PicPreviewScreen Picturebox, and, if you move your mouse, or press a key, it does stop, as it should.

The only glitch here is when it starts, it shows the screensaver fullscreen ( not even for a second ), then, continues to show it in the picturebox. Smile

Thanx again for all your wonderful comments, and I hope I helped solve your issue with the screensaver Smile


Re: Show and Tell Desktop Customiser

Paul Montagna

Nice article Smile I just made a random background changer in C# sort of like your wallpaper genie except it was a little more featured. Probably because it wasn't meant to be an article, but either way real nice job Wink

Re: Show and Tell Desktop Customiser


Thanx a lot for your wonderful comments Paul Smile

Yeah, the Wallpaper genie ( as it is there ), needs some more work & features. My current version I use at home, allows me to obtain all picture files in all sub directories of the PC, or where I specify, that wasn't there in the article. I also added some Rotating and some other image editing features as well, because sometimes the pictures aren't perfect, and needs some editing - but it works perfectly on MS Vista, and everyday, I get another picture on my desktop - I do have about 1600 pictures, just a hobby.

You know, these 2 articles about the desktop, makes life easy. I'm trying to make a taskbar customiser, but that's unfortunately not that easy.

Thanx again for your comments, and if anyone have ideas on what I can also perhaps include in it, I'll take it into consideration Smile