Problem using PwerNotify.DLL
I have an issue when using PwerNotify.DLL, I have used it to show the battery status in my app, it worked with no problems, the only issue I have noticed is: when my app is running; if I try to terminate it via task manager the device will get stock (the screen and hardware bottoms will be unresponsive) therefore device soft reset is required.
If I keep my application exactly the same, but just remove the battery status and not use the PwerNotify.DLL library, then my application has no issues when trying to terminate it via task manager
The code, which I used to get the battery status:
=======================================
Sub App_Start
pwr.New1
pwr.Start
End Sub
Sub Form1_Close
pwr.Stop
End Sub
Sub pwr_Battery
ImageButton1.Text = pwr.BatteryPercent & " %"
End Sub
========================================
Can any body help me with this regard?
Thank you all
I have an issue when using PwerNotify.DLL, I have used it to show the battery status in my app, it worked with no problems, the only issue I have noticed is: when my app is running; if I try to terminate it via task manager the device will get stock (the screen and hardware bottoms will be unresponsive) therefore device soft reset is required.
If I keep my application exactly the same, but just remove the battery status and not use the PwerNotify.DLL library, then my application has no issues when trying to terminate it via task manager
The code, which I used to get the battery status:
=======================================
Sub App_Start
pwr.New1
pwr.Start
End Sub
Sub Form1_Close
pwr.Stop
End Sub
Sub pwr_Battery
ImageButton1.Text = pwr.BatteryPercent & " %"
End Sub
========================================
Can any body help me with this regard?
Thank you all