| | |
browsing photoes
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
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
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
according to this link DidWork is integer variable
so in this line u make sure that user did not choose cancel button in OpenFileDialog
i hope thats help u
VB.NET Syntax (Toggle Plain Text)
Dim DidWork As Integer = openFD.ShowDialog()
VB.NET Syntax (Toggle Plain Text)
If DidWork <> DialogResult.Cancel Then
i hope thats help u
"give only what u willing to receive "
![]() |
Similar Threads
- slow network browsing to shares (Windows NT / 2000 / XP)
- Problems with IE cannot find server/DNS error (Viruses, Spyware and other Nasties)
- Have to reboot to regain IE browsing (Web Browsers)
- internet explorer browsing problems (Web Browsers)
- Solution for slow internet browsing (Web Browsers)
- having Internet Time-Out Browsing Problems (Windows 95 / 98 / Me)
- I occasionally get hijacked when browsing. (Viruses, Spyware and other Nasties)
- Initial hang when browsing My Network Places (Networking Hardware Configuration)
Other Threads in the VB.NET Forum
- Previous Thread: running script in vb
- Next Thread: Error Closing App..
Views: 730 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 2008 access add application array assignment basic box button buttons center class click code combo convert cpu data database datagrid datagridview design designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees error excel exists firewall function image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net opacity page pan picturebox port print printing printpreview problem record refresh regex reports" reuse right-to-left save savedialog search serial socket sorting sql sqldatbase storedprocedure string structures studio temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet vista visual visualbasic visualbasic.net visualstudio2008 web wpf xml





