Post by ranilwallace on Sept 4, 2015 5:03:42 GMT 10
HI everyone. I am having a bit of technical difficulty. I want to change the battery image in my project whenever the batterylife reaches a certain range. For example if the battery life is between 10 to 20 ,then the battery image would be" ic_battery_20". BY the way, the percentage is declared as a single. Here is example code: If percent > 10 < 20 And chargingstatus = PowerLineStatus.Online Then WindowContainer.batterystat.Image = My.Resources.battery_charging_20_white_18dp Else WindowContainer.batterystat.Image = My.Resources.ic_battery_20_white_18dp 'End If the "percent > 10 < 20" is not working , there are no errors, it just doesnt work.
Ranil, Lauve Tech
|
|
Post by Izy Coder on Sept 4, 2015 19:44:10 GMT 10
have you try 0.1 or 0.2 ?
Check Out My Project At VSlang InternetTM. More Project : - Poroxnoss Text Editor 2 - Added soon...
- TAP 2D Game Maker - Coming really soon...
- Easy Desktop - Discontinue..
|
|
Post by ranilwallace on Sept 4, 2015 22:54:39 GMT 10
the single is multiplied by 100 but i got the answer on dream in code. thanks though
Ranil, Lauve Tech
|
|