/* VB.NETだったの忘れてたorz */
Public Class Form1
Inherits System.Windows.Forms.Form
'あらたなBitmapオブジェクトを生成した方法は
'Q4045416
'などを参考に。
Private Picturebox1 As System.Windows.Forms.PictureBox = Nothing
Private b1 As New System.Drawing.Bitmap(500, 500)
Public Sub New()
Me.Width = 800
Me.Height = 600
Picturebox1 = New System.Windows.Forms.PictureBox()
Picturebox1.Top = 0
Picturebox1.Left = 50
Picturebox1.Width = 500
Picturebox1.Height = 500
Picturebox1.BackColor = System.Drawing.Color.White
Me.Controls.Add(Picturebox1)
b1.SetPixel(100, 50, System.Drawing.Color.Red)
Picturebox1.Image = b1
End Sub
End Class
Class Q4105537A
Public Shared Sub Main(args As String())
Dim f As New Form1()
f.ShowDialog()
End Sub
End Class