using System;
using System.Collections .Generic ;
using System.ComponentModel ;
using System.Data ;
using System.Drawing ;
using System.Linq ;
using System.Text ;
using System.Windows .Forms ;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1( )
{
InitializeComponent( ) ;
}
private void Form1_Load( object sender, EventArgs e)
{
//Graphicsオブジェクトの作成
Graphics g = pictureBox1.CreateGraphics ( ) ;
//Penオブジェクトの作成(幅3黒色)
Pen p = new Pen( Color.Black , 3 ) ;
//(0,0)-(100,100)に線を引く
g.DrawLine ( p, 0 , 0 , 100 , 100 ) ;
//リソースを開放する
p.Dispose ( ) ;
g.Dispose ( ) ;
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwp1c2luZyBTeXN0ZW0uRGF0YTsKdXNpbmcgU3lzdGVtLkRyYXdpbmc7CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLldpbmRvd3MuRm9ybXM7CgpuYW1lc3BhY2UgV2luZG93c0Zvcm1zQXBwbGljYXRpb24xCnsKICAgIHB1YmxpYyBwYXJ0aWFsIGNsYXNzIEZvcm0xIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMSgpCiAgICAgICAgewogICAgICAgICAgICBJbml0aWFsaXplQ29tcG9uZW50KCk7CiAgICAgICAgfQoKICAgICAgICBwcml2YXRlIHZvaWQgRm9ybTFfTG9hZChvYmplY3Qgc2VuZGVyLCBFdmVudEFyZ3MgZSkKICAgICAgICB7Ci8vR3JhcGhpY3Pjgqrjg5bjgrjjgqfjgq/jg4jjga7kvZzmiJAKR3JhcGhpY3MgZyA9IHBpY3R1cmVCb3gxLkNyZWF0ZUdyYXBoaWNzKCk7Ci8vUGVu44Kq44OW44K444Kn44Kv44OI44Gu5L2c5oiQKOW5hTPpu5LoibIpClBlbiBwID0gbmV3IFBlbihDb2xvci5CbGFjaywgMyk7Ci8vKDAsMCktKDEwMCwxMDAp44Gr57ea44KS5byV44GPCmcuRHJhd0xpbmUocCwgMCwgMCwgMTAwLCAxMDApOwovL+ODquOCveODvOOCueOCkumWi+aUvuOBmeOCiwpwLkRpc3Bvc2UoKTsKZy5EaXNwb3NlKCk7CiAgICAgICAgfQogICAgfQp9Cg==
compilation info
prog.cs(4,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(5,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(8,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout