Advertisement
Delta_Sierra

ObjClassForm2

Mar 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.58 KB | None | 0 0
  1. Public Class Form2
  2.     Private Sub btnChange_Click(sender As Object, e As EventArgs) Handles btnChange.Click
  3.         Dim objAlterPicBox As ClassChangeHeightWidth
  4.         Dim NewHeight As Integer
  5.         Dim NewWidth As Integer
  6.         objAlterPicBox = New ClassChangeHeightWidth
  7.         objAlterPicBox.ChangeHeight = Val(txtHeight.Text)
  8.         objAlterPicBox.ChangeWidth = Val(txtWidth.Text)
  9.         NewHeight = objAlterPicBox.ChangeHeight
  10.         NewWidth = objAlterPicBox.ChangeWidth
  11.         PictureBox1.Height = NewHeight
  12.         PictureBox1.Width = NewWidth
  13.     End Sub
  14. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement