QuestionHelpMaking A Program To Open Another Program - Need Help !

Posts 16–21 of 21 · Page 2 of 2
Quote Originally Posted by abuckau907 View Post
Don't forget btn_credits 8-)

"But is it possible to just display the icon/png/jpeg of the program instead of the whole file path ?"
Sure. Google "how to add images to a ListView"...

"and also how can i give an error using a label , which will say that "The File Was Not Found , It Might Have Been Changed , Removed Or Moved. Please Browse The Add The File Again If Its Still In Your Machine." And Thanks =)"

If System . IO . File . Exists ( ) = False Then '' or lots of other functions.
myLabel.Text = "paste your error message here"
End If
Hello , Thank You . helped me alot by the way any good suggestions to learn proramming , , , like ebooks or video tutorials . i am actually quite a newbie and really interested in learn programming even though i dont have that much time . Thanks
Stereotypical "read a book" I'm afraid : )

"...even though i dont have that much time." - No advice for that. You get back what you put in, just like everything else in life.
Quote Originally Posted by King Aldrin View Post
Is this what you want? (download the attachment)

Virus Scans:
/Problem

I'm sorry to inform you that you're attachment is affected by our current problem.
-We're unable to download it due to some updates

This problem should be solved within the next 24 hours.

-Jorndel, Programming Minion
@OP If you're only uploading an image, maybe upload it to a public image hosting service and then just post the link in here.
(as "bb code" ie. [ I M G ] h t t p : / / w w w . somesite . com / yourimage . jpg [ / I M G ] without spaces of course)
- I use tinypic , has worked well so far. or https://www.google.com/#q=Free+image+hosting
Quote Originally Posted by GreenPro View Post
Nice ! But is it possible to just display the icon/png/jpeg of the program instead of the whole file path ? and also how can i give an error using a label , which will say that "The File Was Not Found , It Might Have Been Changed , Removed Or Moved. Please Browse The Add The File Again If Its Still In Your Machine." And Thanks =)
If you added the files via openfiledialog that file is going to exist, unless when you run it and the file is not there, then you could execute the code where the file doesn't exist.

Code:
If My.Computer.FileSystem.FileExists(ListView1.FocusedItem.Text) Then
            Shell(ListView1.FocusedItem.Text) 'Shell also have additional parameters if you want a few more options
Else
Label1.Text = ListView1.FocusedItem.Text & " does not exist"
        End If
About the image, add a imagelist and set the listview smallimageindex to the imagelist that you've added. Then, on the open event, you'll just need to populate the imagelist.images
//Approved
Posts 16–21 of 21 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

Need help?