Hello folks...
I've started learning VB few weeks back so if my question sound stupid ,, well .. I'm sorry..
the thing is I'm trying to import a picture from a file into a form ,, and I thought I should do this By using the open file dialog but I don't know how !!! ..
So pleas I'll appreciate you're help..
Thanks in advance
Yeah and by the way I'm using VB 2008.
..:: Importing Pictures ::..
Started by bahrain, Dec 12 2008 12:24 PM
4 replies to this topic
#1
Posted 12 December 2008 - 12:24 PM
|
|
|
#2
Posted 12 December 2008 - 12:27 PM
If Not openFileDialog1.ShowDialog() = DialogResult.OK Then Exit Sub
Try
PictureBox1.Image = Image.FromFile(openFileDialog1.FileName)
Catch (exc As OutOfMemoryException)
MessageBox.Show("You did not select a valid image file!")
End Try
#3
Posted 12 December 2008 - 12:45 PM
Thank U alot Santa Claus
But what if I want the user to be able to change its size or to move it inside the PictureBox frame ??
But what if I want the user to be able to change its size or to move it inside the PictureBox frame ??
#4
Posted 12 December 2008 - 12:53 PM
#5
Posted 12 December 2008 - 12:55 PM
Santa Claus said:
You will have to write code that allows the user to change the size, and respond to user interaction.
and how can I do this??!!


Sign In
Create Account


Back to top









