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. .NET (Core and Framework)
  4. Generate popup desktop application

Generate popup desktop application

Scheduled Pinned Locked Moved .NET (Core and Framework)
comdesignhelp
9 Posts 5 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.
  • R Offline
    R Offline
    RA UL PATEL
    wrote on last edited by
    #1

    Hello friends, I wants to generate popup in my windows application after every 5 minutes of some events. I am using Timer Control for that but i don't get accurate result and Continuous execution of timer ticks hangs the Computer. I have also tried make one service but it does not allow any user interface with that. i am very confused. Please help Thanks. RAHUL. E-mail:rahulpatel112@gmail.com

    N L 2 Replies Last reply
    0
    • R RA UL PATEL

      Hello friends, I wants to generate popup in my windows application after every 5 minutes of some events. I am using Timer Control for that but i don't get accurate result and Continuous execution of timer ticks hangs the Computer. I have also tried make one service but it does not allow any user interface with that. i am very confused. Please help Thanks. RAHUL. E-mail:rahulpatel112@gmail.com

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      The Timer is not 100% accurate and differences CPU cycles, ticks, etc. can throw it off slightly, but it shouldn't be that much of a problem for this usage. If you need absolute precision then create a Thread and use something like GetTickCount


      I know the language. I've read a book. - _Madmatt

      modified on Wednesday, February 3, 2010 9:02 AM

      1 Reply Last reply
      0
      • R RA UL PATEL

        Hello friends, I wants to generate popup in my windows application after every 5 minutes of some events. I am using Timer Control for that but i don't get accurate result and Continuous execution of timer ticks hangs the Computer. I have also tried make one service but it does not allow any user interface with that. i am very confused. Please help Thanks. RAHUL. E-mail:rahulpatel112@gmail.com

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        a wild guess as you didn't show any code, nor provided any hard facts: timer intervals are specified in milliseconds, not seconds; your number is just too small. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
        [The QA section does it automatically now, I hope we soon get it on regular forums as well]


        P R 2 Replies Last reply
        0
        • L Luc Pattyn

          a wild guess as you didn't show any code, nor provided any hard facts: timer intervals are specified in milliseconds, not seconds; your number is just too small. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
          [The QA section does it automatically now, I hope we soon get it on regular forums as well]


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

          Luc Pattyn wrote:

          your number is just too small

          It's a common complaint, and judging by the amount of spam in my spam folder, it's easily curable.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          L 1 Reply Last reply
          0
          • P Pete OHanlon

            Luc Pattyn wrote:

            your number is just too small

            It's a common complaint, and judging by the amount of spam in my spam folder, it's easily curable.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            November Uniform would you perhaps need new spectacles? :-D

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


            I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
            [The QA section does it automatically now, I hope we soon get it on regular forums as well]


            1 Reply Last reply
            0
            • L Luc Pattyn

              a wild guess as you didn't show any code, nor provided any hard facts: timer intervals are specified in milliseconds, not seconds; your number is just too small. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


              I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
              [The QA section does it automatically now, I hope we soon get it on regular forums as well]


              R Offline
              R Offline
              RA UL PATEL
              wrote on last edited by
              #6

              I set interval to 5000(5 seconds) i think it's not small number. What u say?

              D L 2 Replies Last reply
              0
              • R RA UL PATEL

                I set interval to 5000(5 seconds) i think it's not small number. What u say?

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                You still haven't provided any code, so it's impossible to tell you what's wrong.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                R 1 Reply Last reply
                0
                • R RA UL PATEL

                  I set interval to 5000(5 seconds) i think it's not small number. What u say?

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  You must show us the relevant code (in PRE tags!) for us to be able to help you. A simple action that occurs every 5 seconds would not "hang the Computer" unless you have some mistake in there. :)

                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                  I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
                  [The QA section does it automatically now, I hope we soon get it on regular forums as well]


                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    You still haven't provided any code, so it's impossible to tell you what's wrong.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008
                    But no longer in 2009...

                    R Offline
                    R Offline
                    RA UL PATEL
                    wrote on last edited by
                    #9

                    First of all thanks a lot. Now problem is In coding I have time filed which stores current time when there is some events happen. i wants to generate popup after(5 minutes) time reaches at time=time + 5minute. so after every 5 seconds in timer's tick event i am checking,Is time has reached the limit.if it is then generate popup. This is the coding which i am doing. if (System.DateTime.Now.ToShortTimeString() >= Actualtime.AddMinutes(5) ) { //Here Actualtime and all other variables are declared already. frm_grcprd_popup obj_popup = new frm_grcprd_popup(); obj_popup.lbl_Visitor_Id.Text = id[i].ToString(); obj_popup.Show(); } There are some more database operation is there to show values on popup. thats it.

                    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