Please support our VB.NET advertiser: Programming Forums
Views: 768 | Replies: 2
![]() |
•
•
Join Date: Jan 2007
Posts: 26
Reputation:
Rep Power: 2
Solved Threads: 0
Hello,,,
I am creating a screen call (Contacts information) for my project using VB.NET where i want to add picture box contanin as(defualt picture) and button when click in it appear browse picture where you can select the picture you want and appear in the picture box.
can any one help me how to do it? and what to use?/
thanks
I am creating a screen call (Contacts information) for my project using VB.NET where i want to add picture box contanin as(defualt picture) and button when click in it appear browse picture where you can select the picture you want and appear in the picture box.
can any one help me how to do it? and what to use?/
thanks
•
•
Join Date: Dec 2002
Location: West Virginia
Posts: 407
Reputation:
Rep Power: 6
Solved Threads: 44
Add an OpenFileDialog to your project and in your button click add this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
PictureBox1.Load(OpenFileDialog1.FileName)
End If
End Sub![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode