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. Images are not displaying correctly on the buttons and notification for taskmanger kill

Images are not displaying correctly on the buttons and notification for taskmanger kill

Scheduled Pinned Locked Moved C#
helpquestionperformance
3 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.
  • E Offline
    E Offline
    engsrini
    wrote on last edited by
    #1

    Hi Im designing a touch screen windows application where i have customized the buttons to hold images for all states like (enabled, disabled, clicked, mouse over). Same i have done for panels. But some times the images are not displaying correctly instead of image it is displaying Big X mark in red color. (like in the internet explorer if the image is not present it will diaply one X mark right) Why did this happend, I have not seen this regularly, this is happened rarely.. I am thinking it should be a memory issue.. or GUI is not refreshing properly? Even i have used double buffering.. One more question Is there anyway to get notificaiton (like events) in the code if the user kills the application from task manager? Becuase sometimes application is not opening if we kill the application using taskmanager and reopen. Any help?

    D 2 Replies Last reply
    0
    • E engsrini

      Hi Im designing a touch screen windows application where i have customized the buttons to hold images for all states like (enabled, disabled, clicked, mouse over). Same i have done for panels. But some times the images are not displaying correctly instead of image it is displaying Big X mark in red color. (like in the internet explorer if the image is not present it will diaply one X mark right) Why did this happend, I have not seen this regularly, this is happened rarely.. I am thinking it should be a memory issue.. or GUI is not refreshing properly? Even i have used double buffering.. One more question Is there anyway to get notificaiton (like events) in the code if the user kills the application from task manager? Becuase sometimes application is not opening if we kill the application using taskmanager and reopen. Any help?

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

      I ran into the same problem once. My drawing code was taking entirely too long to update the screen image before it was called again.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • E engsrini

        Hi Im designing a touch screen windows application where i have customized the buttons to hold images for all states like (enabled, disabled, clicked, mouse over). Same i have done for panels. But some times the images are not displaying correctly instead of image it is displaying Big X mark in red color. (like in the internet explorer if the image is not present it will diaply one X mark right) Why did this happend, I have not seen this regularly, this is happened rarely.. I am thinking it should be a memory issue.. or GUI is not refreshing properly? Even i have used double buffering.. One more question Is there anyway to get notificaiton (like events) in the code if the user kills the application from task manager? Becuase sometimes application is not opening if we kill the application using taskmanager and reopen. Any help?

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

        engsrini wrote:

        Is there anyway to get notificaiton (like events) in the code if the user kills the application from task manager? Becuase sometimes application is not opening if we kill the application using taskmanager and reopen.

        Nope. If the application is killed, or forcibly stopped, you'll never get an event because your code stops executing and the memory it occupies is freed. If youre code isn't running any more, there's no way it can respond to being killed off.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        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