|
-
Apr 23rd, 2007, 02:59 AM
#1
Thread Starter
Frenzied Member
Background Image
I've got a program which works on a time, it selects a image at random froma list.
IE: Dim FileDet As String = "C:\Desktop\Photos\pic1.jpg"
How can i get VB.Net to change this as much background image????
-
Apr 23rd, 2007, 03:25 AM
#2
Re: Background Image
 Originally Posted by kiwis
I've got a program which works on a time, it selects a image at random froma list.
IE: Dim FileDet As String = "C:\Desktop\Photos\pic1.jpg"
How can i get VB.Net to change this as much background image????
Hi,
You want that every time the random choose picture the background picture changes in the choosen picture.
Wkr,
sparrow1
-
Apr 23rd, 2007, 03:28 AM
#3
Thread Starter
Frenzied Member
-
Apr 23rd, 2007, 03:31 AM
#4
Re: Background Image
 Originally Posted by kiwis
Yes that's right
Hi,
What do you have so far?
wkr,
sparrow1
-
Apr 23rd, 2007, 05:45 AM
#5
Thread Starter
Frenzied Member
Re: Background Image
I don't have a clue where to start?
-
Apr 23rd, 2007, 05:22 PM
#6
Re: Background Image
Hi,
What is the version your working with.
Wkr,
sparrow1
-
Apr 23rd, 2007, 05:28 PM
#7
Thread Starter
Frenzied Member
-
Apr 23rd, 2007, 06:19 PM
#8
Re: Background Image
Hi,
I created somecode.
It's possible that there's a better way but it works.
It's very late this time of day , so I 'm very tired and wants to go to sleep
But anyway you can tried it this way:
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start() ' timer set to 5000 or the time needed to change
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static Dim Image As Integer
Select Case Image
Case 0
Me.BackgroundImage = My.Resources.name of the image
Image += 1
Case 1
Me.BackgroundImage = My.Resources.name of the image
Image = 0
End Select
End Sub
Wkr,
sparrow1
-
Apr 23rd, 2007, 06:44 PM
#9
Thread Starter
Frenzied Member
Re: Background Image
Thanks but I mean my desktop background
-
Apr 23rd, 2007, 06:50 PM
#10
-
Apr 23rd, 2007, 07:03 PM
#11
Thread Starter
Frenzied Member
Re: Background Image
Thanks, also how could I get the file location from my current wallpaper image?
-
Apr 24th, 2007, 01:02 AM
#12
Re: Background Image
 Originally Posted by kiwis
Thanks but I mean my desktop background
Hi,
Do you mean that you want to create a Screensaver.
Wkr,
sparrow1
-
Apr 24th, 2007, 01:21 AM
#13
Thread Starter
Frenzied Member
Re: Background Image
I'm i'm making a program which uses selected files to changed my wallpaper every so often (set by a timer event)
I really need to know two things
1. How to set a image as a wallpaper
2. How to get the details of the current wallpaper
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
|