Results 1 to 2 of 2

Thread: how do i open windows form file based on time?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    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?

  2. #2
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 2011
    Posts
    696

    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:
    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?

    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
    <<<------------
    Improving Managed Code Performance | .NET Application Performance
    < Please if this helped you out. Any kind of thanks is gladly appreciated >


    .NET Programming (2012 - 2018)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width