Quantcast
Channel: C#タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9366

cscの作法 その8

$
0
0

概要

cscの作法、調べてみた。
画像表示してみた。

写真

image.png

サンプルコード

using System;
using System.Windows.Forms;
using System.Drawing;

class form1: Form {
    form1() {
        Text = "WebBrowser";
        ClientSize = new Size(420, 320);

        PictureBox pb0 = new PictureBox();
        pb0.Width = 400;
        pb0.Height = 300;
        pb0.Image = Image.FromFile("C:\\1.png");
        Controls.AddRange(new Control[] {
            pb0
        });
    }
    [STAThread]
    public static void Main() {
        Application.Run(new form1());
    }
}

以上。


Viewing all articles
Browse latest Browse all 9366

Latest Images

Trending Articles