What's Here?
- Members: 131,820
- Replies: 470,006
- Topics: 72,839
- Snippets: 2,536
- Tutorials: 664
- Total Online: 1,482
- Members: 85
- Guests: 1,397
Who's Online?
|
Use OpenFileDialog to browse to a bitmap image and load into a PictureBox.
|
Submitted By: Jayman
|
|
Rating:
 
|
|
Views: 14,864 |
Language: VB.NET
|
|
Last Modified: October 17, 2006 |
|
Instructions: Drag a PictureBox from the toolbox to your form and set name to PictureBox1. |
Snippet
Dim OpenFileDialog1 As New OpenFileDialog
With OpenFileDialog1
.CheckFileExists = True
.ShowReadOnly = False
.Filter = "All Files|*.*|Bitmap Files (*)|*.bmp;*.gif;*.jpg"
.FilterIndex = 2
If .ShowDialog = DialogResult.OK Then
' Load the specified file into a PictureBox control.
PictureBox1.Image = Image.FromFile(.FileName)
End If
End With
Copy & Paste
|
|
|
Reference Sheets
Bye Bye Ads
Free DIC T-Shirt
Related Sites
Monthly Drawing
Partners
Top Contributors
Top 10 Kudos This Month
|