help me
-
hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please
-
hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please
Please write a descriptive subject. The subject "help me" provides no useful information what so ever. What do you mean when you say that the code "is error"? Do you get an error message? Doesn't it do what you expected, and if so, what did you expect and what happens? Follow the pattern in the code you have; a description followed by a file mask. --- b { font-weight: normal; }
-
hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please
-
hi all Dim openFile As New System.Windows.Forms.OpenFileDialog openFile.DefaultExt = "txt" openFile.Filter = "All File(*.*) |*.*" openFile.ShowDialog() i wante to give me multi choices pdf and doc and jpeg openFile.Filter = "adobe(pdf) |document(doc)|jpeg(jpg)" this code is error give me the right code please
"adobe(pdf)|*.pdf |document(doc)|*.doc|jpeg(jpg)|*.jpg" Each pairing is | delimited eg. "type_HumanReadable|FileSystemMask". then each pair is futher delimited by a pipe eg. "adobe(pdf)|*.pdf |document(doc)|*.doc" also watch out for .jpeg s I think you can add ", *.jpeg" to the end, but I can't quite recall off the top of my head. oh and the other had some good points. look over his/her post. next time just highlight "Openfile.Filter" and hit F1 to look at the help doc. I have to look this one up every time... hey...slang is the vernacular for the vernacular...wow