bear24rw
06-07-2004, 02:53 PM
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 :)
Negative0
06-07-2004, 02:56 PM
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 :)
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.
bear24rw
06-08-2004, 01:06 PM
How would i go about to find the width and hight of the screen (not the form)?
Negative0
06-08-2004, 01:50 PM
How would i go about to find the width and hight of the screen (not the form)?
MsgBox(Screen.PrimaryScreen.WorkingArea.Height())
MsgBox(Screen.PrimaryScreen.WorkingArea.Width())