「已注销」 2014-05-18 06:05
浏览 671

SysInfoStrings的用法

protected override void OnPaint(PaintEventArgs pea)
{
Graphics grfx = pea.Graphics;
Brush brush = new SolidBrush(ForeColor);
int iCount = SysInfoStrings.Count;
string[] astrLabels = SysInfoStrings.Labels;
string[] astrValues = SysInfoStrings.Values;

    for (int i = 0; i < iCount; i++)
    {
        grfx.DrawString(astrLabels[i], Font, brush,
                                        0, i * cySpace);
        grfx.DrawString(astrValues[i], Font, brush,
                                        cxCol, i * cySpace);
    }
  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码
    • ¥50 随机森林与房贷信用风险模型
    • ¥50 buildozer打包kivy app失败
    • ¥30 在vs2022里运行python代码
    • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
    • ¥15 求解 yolo算法问题