вопрос решил)
если кому интересно, то таким образом
Код: Dim xSize As Integer
Dim ySize As Integer
If a = 1 Then
xSize = PictureBox1.Size.Height + 10
ySize = PictureBox1.Size.Width + 10
PictureBox1.Size = New Size(xSize, ySize)
Else
xSize = PictureBox1.Size.Height - 10
ySize = PictureBox1.Size.Width - 10
PictureBox1.Size = New Size(xSize, ySize)
End If
If xSize >= Me.Size.Height Or ySize >= Me.Size.Width Then
a = 0
End If
If xSize <= 0 Or ySize <= 0 Then
a = 1
End If
если кому интересно, то таким образом
Код: Dim xSize As Integer
Dim ySize As Integer
If a = 1 Then
xSize = PictureBox1.Size.Height + 10
ySize = PictureBox1.Size.Width + 10
PictureBox1.Size = New Size(xSize, ySize)
Else
xSize = PictureBox1.Size.Height - 10
ySize = PictureBox1.Size.Width - 10
PictureBox1.Size = New Size(xSize, ySize)
End If
If xSize >= Me.Size.Height Or ySize >= Me.Size.Width Then
a = 0
End If
If xSize <= 0 Or ySize <= 0 Then
a = 1
End If