how do i open windows form file based on time?
I am developing windows application using C# and MS sql.
now i can run my project successfully except i need one thing.
my project has so many files. one of the file displays name lists of employee with less than a month their contract period expiry.
now i want to make this file to start by its every specified time. i know how can i do the whole project by using scheduler.. but now what i want is.. my project is open, then i want to apprear the contractexpiry.cs file every specified time on the top of all the winds open. so how can i do this?
Re: how do i open windows form file based on time?
Make it appear how? Your post is very confusing to me, but the only relevant part of the post seems to be in the very last sentence here:
Quote:
my project is open, then i want to apprear the contractexpiry.cs file every specified time on the top of all the winds open. so how can i do this?
Are you wanting to open this .cs file in notepad? How does your application start before you want it to open on a specified time? What if your application is NOT open on the time you want to open that .cs file? I don't understand. Although if you can open your application with the task scheduler why can't you do that with notepad and send it the argument as the filepath to this .cs file? :confused:
Code:
notepad.exe "File.cs"
I'm not understanding the ".cs" portion here, unless this is not a C# file that you're opening but .cs stands for some custom file and file extension which is saved by your program instead. Is your application meant to open this file? Why not enable your application to understand command line arguments?
Code:
MyApplication.exe "File.cs"
~Ace