943,926 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 830
  • VB.NET RSS
Aug 20th, 2007
0

browsing photoes

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
apchidara is offline Offline
18 posts
since Aug 2007
Aug 23rd, 2007
1

Re: browsing photoes

according to this link DidWork is integer variable
VB.NET Syntax (Toggle Plain Text)
  1. Dim DidWork As Integer = openFD.ShowDialog()
so in this line
VB.NET Syntax (Toggle Plain Text)
  1. If DidWork <> DialogResult.Cancel Then
u make sure that user did not choose cancel button in OpenFileDialog

i hope thats help u
Reputation Points: 37
Solved Threads: 17
Junior Poster
manal is offline Offline
122 posts
since Mar 2006
Aug 24th, 2007
0

Re: browsing photoes

thanks really it worked.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
apchidara is offline Offline
18 posts
since Aug 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: running script in vb
Next Thread in VB.NET Forum Timeline: Error Closing App..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC