browsing photoes

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2007
Posts: 18
Reputation: apchidara is an unknown quantity at this point 
Solved Threads: 0
apchidara apchidara is offline Offline
Newbie Poster

browsing photoes

 
0
  #1
Aug 20th, 2007
hi every one I am evry new to vb.net I want to have brows pictures in my form and I have made a menu and a view option I got a code from the ney but it is not wroking here it is:
If DidWork <> DialogResult.Cancel Then
strFileName = openFD.FileName
PictureBox1.Image = Image.FromFile(strFileName)
openFD.Reset()
End If

where I dont know what is"DidWork"
and if u know have any other idea of how I can do it please let me know thanks in advanced
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 121
Reputation: manal is an unknown quantity at this point 
Solved Threads: 17
manal's Avatar
manal manal is offline Offline
Junior Poster

Re: browsing photoes

 
1
  #2
Aug 23rd, 2007
according to this link DidWork is integer variable
  1. Dim DidWork As Integer = openFD.ShowDialog()
so in this line
  1. If DidWork <> DialogResult.Cancel Then
u make sure that user did not choose cancel button in OpenFileDialog

i hope thats help u
"give only what u willing to receive "
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 18
Reputation: apchidara is an unknown quantity at this point 
Solved Threads: 0
apchidara apchidara is offline Offline
Newbie Poster

Re: browsing photoes

 
0
  #3
Aug 24th, 2007
thanks really it worked.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC