Visual Basic NET ( 3)


PictureBox


, . PictureBox. , , (i). : , . cls cls PictureBox? . !

:

Public Class cls

Inherits PictureBox

.

Public Sub New()

Me.Width = _

Me.Height = _

Me.SizeMode = PictureBoxSizeMode.StretchImage

Me.BackColor = Color.White

Me.Image = Image.FromFile("FACE02.ICO")

.Controls.Add(Me) '

Me.BringToFront() '

End Sub

.

Private Sub ____()

Me.Left = x

Me.Top = y

End Sub

.

, , .

:

Public Class cls

Inherits PictureBox

.

Private Event _()

Public Sub New()

Me.Width = _

Me.Height = _

Me.SizeMode = PictureBoxSizeMode.StretchImage

Me.BackColor = Color.White

Me.Image = Image.FromFile("MOON06.ICO")

.Controls.Add(Me)

Me.BringToFront()

AddHandler _, AddressOf _

AddHandler _, AddressOf .___

End Sub

Private Sub ____()

Me.Left = x

Me.Top = y

End Sub

 

Public Sub ()

__()

()

()

____()