Hi to all
Is there any way to refresh (after certain time period) windows application automatically in .NET as in
web application?
If so, Please tell me the way.
Thanks in advance..
With Regards
ila
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted May 12, 2010, 2:11 AM EDT
Try below things.
1. Paste a Timer control and make it Enabled = "True" and set it's Intervel property. It's in milliseconds
2. Define the logics for download in a method like below
public void DownLoadFiles()
{
//Download logic
}
3. Write below code inside Tick event of Timer. It's calling your method in a separate Thread. The calls will be in an intevel you already set as property of your Timer control
private void timer1_Tick(object sender, EventArgs e)
{
Thread th = new Thread(new ThreadStart(DownLoadFiles));
th.Start();
}
CrishRank #1,487 · 1.1K reputationPosted May 8, 2010, 4:07 AM EDT
using javascript its possible to refresh webapplication.
thanks
Dipa AhujaRank #1,168 · 1.5K reputationPosted May 8, 2010, 4:16 AM EDT
in timer control's event:
Amit ChoudharyRank #145 · 15.8K reputationPosted May 8, 2010, 7:51 PM EDT
please give your requirement what is the need of refreshing the window form?? cause then different way you have to choose..
ila41 reputationPosted May 12, 2010, 12:29 AM EDT
I am doing project for file downloading.. My Requirement is if i once start the download process it should automatically download files..
For example let me start the process at 9 pm.. If some files are uploaded at 10 pm means i should not start the download process again..
Is there any way for it?
Thanks in advance..
With regards,
ila
Jaish MathewsRank #225 · 11K reputationPosted May 12, 2010, 1:14 AM EDT
ila41 reputationPosted May 12, 2010, 1:48 AM EDT
That's partially right.. Application should automatically be refreshed for every one hour so that it can search for new files to download..
thank you
with regards
ila