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. Visual Basic
  4. problem with windows service - msgbox problem

problem with windows service - msgbox problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharp
2 Posts 2 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.
  • B Offline
    B Offline
    BSRK
    wrote on last edited by
    #1

    hi, i wrote one vb.net service which checks for a set of conditions. if the condition fails, it gives a warning to the user asking him to fulfil the conditions within 30 minutes, failing which he will be forcebly logged off. after 30 mins, it checks taht condition again & does accordingly. (i used a msgbox to give that warning to the user). it works well & good if he responds to the msgbox by clicking on it. if he doesn't respond at all, it throws an error saying that service cannot run & stops abruptly. i guess it is waiting for the user's response for that msgbox. i am thinking of two options: some other way (popup kind) to give warning to the user instaed of msgbox start a separate thread for this kind of messages i will be thankful for some light on these issues & a better solution.

    M 1 Reply Last reply
    0
    • B BSRK

      hi, i wrote one vb.net service which checks for a set of conditions. if the condition fails, it gives a warning to the user asking him to fulfil the conditions within 30 minutes, failing which he will be forcebly logged off. after 30 mins, it checks taht condition again & does accordingly. (i used a msgbox to give that warning to the user). it works well & good if he responds to the msgbox by clicking on it. if he doesn't respond at all, it throws an error saying that service cannot run & stops abruptly. i guess it is waiting for the user's response for that msgbox. i am thinking of two options: some other way (popup kind) to give warning to the user instaed of msgbox start a separate thread for this kind of messages i will be thankful for some light on these issues & a better solution.

      M Offline
      M Offline
      MatrixCoder
      wrote on last edited by
      #2

      It would help if you would display your code. But I'm thinking that you should use a Try Catch statement.

      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