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. Mobile Development
  3. Mobile
  4. Want to show popup notification for "low battery"

Want to show popup notification for "low battery"

Scheduled Pinned Locked Moved Mobile
help
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.
  • Y Offline
    Y Offline
    yrishi
    wrote on last edited by
    #1

    Hi I am developing Smart Device Application using .NCF 1.0(vb) with Windows CE 5.0 Want to show popup notification for "low battery" Please help me on this. Thanks in advance Yogesh Rishipathak

    K 1 Reply Last reply
    0
    • Y yrishi

      Hi I am developing Smart Device Application using .NCF 1.0(vb) with Windows CE 5.0 Want to show popup notification for "low battery" Please help me on this. Thanks in advance Yogesh Rishipathak

      K Offline
      K Offline
      Khatri Mitesh
      wrote on last edited by
      #2

      Hii, Try this code.........

      Dim psBattery As PowerStatus = SystemInformation.PowerStatus
      Dim perFull As Single = psBattery.BatteryLifePercent
      'Show the remaining battery power in percentages
      MsgBox("Total battery power remaining: " & perFull * 100 & "%")
      'Is the battery charging?
      If psBattery.PowerLineStatus = PowerLineStatus.Online Then
      MsgBox("Battery charge status: Charging")
      ElseIf psBattery.PowerLineStatus = PowerLineStatus.Offline Then
      MsgBox("Battery charge status: Not charging")
      End If

      Hope this solves ur problem...... Thanks

      ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

      Y 1 Reply Last reply
      0
      • K Khatri Mitesh

        Hii, Try this code.........

        Dim psBattery As PowerStatus = SystemInformation.PowerStatus
        Dim perFull As Single = psBattery.BatteryLifePercent
        'Show the remaining battery power in percentages
        MsgBox("Total battery power remaining: " & perFull * 100 & "%")
        'Is the battery charging?
        If psBattery.PowerLineStatus = PowerLineStatus.Online Then
        MsgBox("Battery charge status: Charging")
        ElseIf psBattery.PowerLineStatus = PowerLineStatus.Offline Then
        MsgBox("Battery charge status: Not charging")
        End If

        Hope this solves ur problem...... Thanks

        ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

        Y Offline
        Y Offline
        yrishi
        wrote on last edited by
        #3

        Hi Thanks for your response, infact i am operating my device using RF remote, in this case i am unable to close the msgbox using remote. Hence,could you please help me regarding windows style notification for low battery indication. Regards Yogesh R.

        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