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
D

Drazen Pupovac

@Drazen Pupovac
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to show battery level on my C# windows-ce program
    D Drazen Pupovac

    I'm not sure how fast is, but this is one way (if you ask this?):

    [DllImport("coredll")]
    private static extern uint GetSystemPowerStatusEx(SYSTEM_POWER_STATUS lpSystemPowerStatus, bool fUpdate);

    public class SYSTEM_POWER_STATUS
    {
    public byte ACLineStatus;
    public byte BatteryFlag;
    public byte BatteryLifePercent;
    public byte Reserved1;
    public uint BatteryLifeTime;
    public uint BatteryFullLifeTime;
    public byte Reserved2;
    public byte BackupBatteryFlag;
    public byte BackupBatteryLifePercent;
    public byte Reserved3;
    public uint BackupBatteryLifeTime;
    public uint BackupBatteryFullLifeTime;
    }

    SYSTEM_POWER_STATUS status;
    uint return = GetSystemPowerStatusEx(status, false);

    Mobile csharp tutorial question

  • can not focus on the form at run time
    D Drazen Pupovac

    I think the problem is that the form isn't visible. Try to use this to set focus on form:

    [DllImport("user32.dll")]
    private extern static IntPtr SetFocus(IntPtr hwnd);

    Mobile database data-structures question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups