Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Winform: Slide show is not working when i use Quartz.net to fire my routine at specific time

C# Winform: Slide show is not working when i use Quartz.net to fire my routine at specific time

Scheduled Pinned Locked Moved C#
csharpdatabasehelpannouncementcareer
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tridip Bhattacharjee
    wrote on last edited by
    #1

    here i am giving a small my code snippet just to show what i am trying to achieve.

    private void frmMain_Load(object sender, EventArgs e)
    {
    // construct a scheduler factory
    ISchedulerFactory schedFact = new StdSchedulerFactory();

            // get a scheduler
            sched = schedFact.GetScheduler();
            sched.Start();
    
            IJobDetail job = JobBuilder.Create()
                .WithIdentity("Job", "group")
                .Build();
    
            ITrigger trigger = TriggerBuilder.Create()
               .WithDailyTimeIntervalSchedule
                 (s =>
                    s.WithIntervalInHours(24)
                   .OnEveryDay()
                   .StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(01, 55))
                 )
               .Build();
    
            sched.ScheduleJob(job, trigger);
        }
    
        public void Execute(IJobExecutionContext context)
        {
            generate();
        }
    
        public void generate()
        {
            if (this.FetchStart != null)
                this.FetchStart(this, new EventArgs());
    
            System.Threading.Thread.Sleep(5000);
    
            if (this.FetchDone != null)
                this.FetchDone(this, new EventArgs());
        }
    

    i have done my project with VS2013 community edition. my objective is to call slide show routine every day at specific time. when i am calling my slide show routine without quartz.net scheduler then it is working fine but when i invoke my routine by quartz.net scheduler then routine is getting called but no slide show image is showing. what [problem occur is not clear to me. as per my objective i have to use quartz.net scheduler because i need to invoke my routine at a specific time of day every day. here i am sharing my project code because it is in onedrive. so my request please some one download my project and run at your end to see the problem and tell me the reason which causes not to show images on picture box. if possible please rectify my code with quartz.net scheduler code. one drive project link is https://1drv.ms/f/s!AmIfMNV-CodPa81zFiNH6Ur7qro i upload my project folder. thanks ---------------------------------------------------------------------------------------------------------- UPDATE when i use background worker along with quartz.net to call my generate routine then also no improvement i found. same problem that slide show image is not appearing on picture box

    P L 2 Replies Last reply
    0
    • T Tridip Bhattacharjee

      here i am giving a small my code snippet just to show what i am trying to achieve.

      private void frmMain_Load(object sender, EventArgs e)
      {
      // construct a scheduler factory
      ISchedulerFactory schedFact = new StdSchedulerFactory();

              // get a scheduler
              sched = schedFact.GetScheduler();
              sched.Start();
      
              IJobDetail job = JobBuilder.Create()
                  .WithIdentity("Job", "group")
                  .Build();
      
              ITrigger trigger = TriggerBuilder.Create()
                 .WithDailyTimeIntervalSchedule
                   (s =>
                      s.WithIntervalInHours(24)
                     .OnEveryDay()
                     .StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(01, 55))
                   )
                 .Build();
      
              sched.ScheduleJob(job, trigger);
          }
      
          public void Execute(IJobExecutionContext context)
          {
              generate();
          }
      
          public void generate()
          {
              if (this.FetchStart != null)
                  this.FetchStart(this, new EventArgs());
      
              System.Threading.Thread.Sleep(5000);
      
              if (this.FetchDone != null)
                  this.FetchDone(this, new EventArgs());
          }
      

      i have done my project with VS2013 community edition. my objective is to call slide show routine every day at specific time. when i am calling my slide show routine without quartz.net scheduler then it is working fine but when i invoke my routine by quartz.net scheduler then routine is getting called but no slide show image is showing. what [problem occur is not clear to me. as per my objective i have to use quartz.net scheduler because i need to invoke my routine at a specific time of day every day. here i am sharing my project code because it is in onedrive. so my request please some one download my project and run at your end to see the problem and tell me the reason which causes not to show images on picture box. if possible please rectify my code with quartz.net scheduler code. one drive project link is https://1drv.ms/f/s!AmIfMNV-CodPa81zFiNH6Ur7qro i upload my project folder. thanks ---------------------------------------------------------------------------------------------------------- UPDATE when i use background worker along with quartz.net to call my generate routine then also no improvement i found. same problem that slide show image is not appearing on picture box

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      No one is going to download a project to fix it for you. If there is an issue with Quartz.Net, the github for it can be found here[^].

      This space for rent

      1 Reply Last reply
      0
      • T Tridip Bhattacharjee

        here i am giving a small my code snippet just to show what i am trying to achieve.

        private void frmMain_Load(object sender, EventArgs e)
        {
        // construct a scheduler factory
        ISchedulerFactory schedFact = new StdSchedulerFactory();

                // get a scheduler
                sched = schedFact.GetScheduler();
                sched.Start();
        
                IJobDetail job = JobBuilder.Create()
                    .WithIdentity("Job", "group")
                    .Build();
        
                ITrigger trigger = TriggerBuilder.Create()
                   .WithDailyTimeIntervalSchedule
                     (s =>
                        s.WithIntervalInHours(24)
                       .OnEveryDay()
                       .StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(01, 55))
                     )
                   .Build();
        
                sched.ScheduleJob(job, trigger);
            }
        
            public void Execute(IJobExecutionContext context)
            {
                generate();
            }
        
            public void generate()
            {
                if (this.FetchStart != null)
                    this.FetchStart(this, new EventArgs());
        
                System.Threading.Thread.Sleep(5000);
        
                if (this.FetchDone != null)
                    this.FetchDone(this, new EventArgs());
            }
        

        i have done my project with VS2013 community edition. my objective is to call slide show routine every day at specific time. when i am calling my slide show routine without quartz.net scheduler then it is working fine but when i invoke my routine by quartz.net scheduler then routine is getting called but no slide show image is showing. what [problem occur is not clear to me. as per my objective i have to use quartz.net scheduler because i need to invoke my routine at a specific time of day every day. here i am sharing my project code because it is in onedrive. so my request please some one download my project and run at your end to see the problem and tell me the reason which causes not to show images on picture box. if possible please rectify my code with quartz.net scheduler code. one drive project link is https://1drv.ms/f/s!AmIfMNV-CodPa81zFiNH6Ur7qro i upload my project folder. thanks ---------------------------------------------------------------------------------------------------------- UPDATE when i use background worker along with quartz.net to call my generate routine then also no improvement i found. same problem that slide show image is not appearing on picture box

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Functional programming mayhem. Reap now what you sow.

        "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups