RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 768 | Replies: 2
Reply
Join Date: Jan 2007
Posts: 26
Reputation: yaya_star is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
yaya_star yaya_star is offline Offline
Light Poster

Help Brows Picture Help

  #1  
Mar 21st, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2002
Location: West Virginia
Posts: 407
Reputation: waynespangler is on a distinguished road 
Rep Power: 6
Solved Threads: 44
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: Brows Picture Help

  #2  
Mar 22nd, 2007
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
Reply With Quote  
Join Date: Jan 2007
Posts: 26
Reputation: yaya_star is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
yaya_star yaya_star is offline Offline
Light Poster

Re: Brows Picture Help

  #3  
Mar 22nd, 2007
Thank you very much
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:53 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC