
06-07-2004, 02:56 PM
|
|
Freshman
|
|
Join Date: Aug 2003
Posts: 30
|
|
Quote:
|
Originally Posted by bear24rw
How do i change the picture in the picture box to a differnt one from a file (in code)?
How do i get how big the form is (x,y) so if a user makes it bigger the program will know?
thanks 
|
Code:
PictureBox1.Image = Image.FromFile("C:\Output124.tif")
MsgBox("H:" & Me.Height & vbCrLf & "W:" & Me.Width)
The Form Resize event is called whenever the form is resized, so when that event is fired, you know the form size is being changed.
|
|