Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi!
I need to know how to change the background image for my MDI application on a daily basis. Can anybody tell me how I can achieve this?
Example
today is Friday so today one background image .tomorrow automatically change another background image
Any code

Thanks for your interest!
Posted
Updated 4-Aug-11 23:17pm
v4
Comments
Herman<T>.Instance 5-Aug-11 4:43am    
what is the problem? finding out what day it is based on DateTime.Now ?
Christian Graus 5-Aug-11 4:52am    
I suggest in future using a non-retarded header. "I need to know about VB.NET" doesn't tell anyone anything about your question that can't be gleaned from the tags.

1 solution

A way is to permanently store and keep updated the date of the last change. When you launch the application, check if that date has changed and set a new background image. (If the application stays running for long periods, you should check the date, say, every hour also.)

Need more details ?
 
Share this answer
 
Comments
Manfred Rudolf Bihy 5-Aug-11 5:04am    
Good answer! 5+
That should be enough to get OP started.

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