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