Click here to Skip to main content
15,887,135 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUnable to close or kill the Excel Application EXE in the Task Manager through code. Pin
manoharbalu30-Jan-09 18:35
manoharbalu30-Jan-09 18:35 
AnswerRe: Unable to close or kill the Excel Application EXE in the Task Manager through code. Pin
Dave Kreskowiak31-Jan-09 4:22
mveDave Kreskowiak31-Jan-09 4:22 
Questionhelp file creation Pin
ngugi30-Jan-09 5:36
ngugi30-Jan-09 5:36 
AnswerRe: help file creation Pin
Dave Kreskowiak30-Jan-09 6:18
mveDave Kreskowiak30-Jan-09 6:18 
QuestionShareware Application Pin
ivo7530-Jan-09 3:00
ivo7530-Jan-09 3:00 
AnswerRe: Shareware Application Pin
Ashfield30-Jan-09 4:23
Ashfield30-Jan-09 4:23 
GeneralRe: Shareware Application Pin
EliottA30-Jan-09 4:25
EliottA30-Jan-09 4:25 
QuestionWindows Media Player cannot open MP3 files Pin
tatchung30-Jan-09 0:58
tatchung30-Jan-09 0:58 
Hi all,

I'm currently working on an application that opens media files with respect to their file extensions. Images are opened with Microsoft image viewer, video is opened with VLC and mp3 is supposed to be played with windows media player/VLC. So far opening images works fine but when I try to open video or music files i get the error that the opened application is unable to play the file.I'm positive that It has something to do with the spaces on the file location e.g. c:\Program Files\Windows Media Player\something.mp3. Question is how do I make it that the location doesn't incur any spaces or is there another way to open the files in their respective application aside from what I've been doing. I'm using vb6 by the way. Below are the codes I use for my task:

Images
Shell "rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen " & txtscreenshot.Text & "", vbMaximizedFocus


Video
Shell ("C:\Program Files\VideoLAN\VLC\vlc.exe " & txtscreenshot.Text & ""), vbNormalFocus


Music
Shell "C:\Program Files\Windows Media Player\wmplayer.exe " & txtscreenshot.Text & "", vbNormalFocus


Many thanks for all your replies! Big Grin | :-D
AnswerRe: Windows Media Player cannot open MP3 files Pin
Eddy Vluggen30-Jan-09 1:05
professionalEddy Vluggen30-Jan-09 1:05 
GeneralRe: Windows Media Player cannot open MP3 files Pin
tatchung30-Jan-09 18:42
tatchung30-Jan-09 18:42 
GeneralRe: Windows Media Player cannot open MP3 files Pin
Christian Graus30-Jan-09 18:55
protectorChristian Graus30-Jan-09 18:55 
GeneralRe: Windows Media Player cannot open MP3 files Pin
tatchung1-Feb-09 2:07
tatchung1-Feb-09 2:07 
QuestionRe: Windows Media Player cannot open MP3 files Pin
Eddy Vluggen30-Jan-09 22:41
professionalEddy Vluggen30-Jan-09 22:41 
AnswerRe: Windows Media Player cannot open MP3 files Pin
tatchung1-Feb-09 17:25
tatchung1-Feb-09 17:25 
Questionwhile images are loading if i try to close application its not closing Pin
sham s30-Jan-09 0:28
sham s30-Jan-09 0:28 
AnswerRe: while images are loading if i try to close application its not closing Pin
Dave Kreskowiak30-Jan-09 2:15
mveDave Kreskowiak30-Jan-09 2:15 
GeneralRe: while images are loading if i try to close application its not closing Pin
Luc Pattyn30-Jan-09 3:19
sitebuilderLuc Pattyn30-Jan-09 3:19 
QuestionShell and Sendkeys Problem Pin
Nanda_MR29-Jan-09 22:54
Nanda_MR29-Jan-09 22:54 
AnswerRe: Shell and Sendkeys Problem Pin
Dave Kreskowiak30-Jan-09 2:05
mveDave Kreskowiak30-Jan-09 2:05 
GeneralRe: Shell and Sendkeys Problem Pin
Nanda_MR30-Jan-09 17:34
Nanda_MR30-Jan-09 17:34 
GeneralRe: Shell and Sendkeys Problem Pin
Dave Kreskowiak31-Jan-09 4:14
mveDave Kreskowiak31-Jan-09 4:14 
QuestionFiltering DataGridView? Pin
kanchoette29-Jan-09 22:36
kanchoette29-Jan-09 22:36 
AnswerRe: Filtering DataGridView? Pin
Ashfield30-Jan-09 1:20
Ashfield30-Jan-09 1:20 
GeneralRe: Filtering DataGridView? Pin
kanchoette30-Jan-09 1:30
kanchoette30-Jan-09 1:30 
GeneralRe: Filtering DataGridView? Pin
Ashfield30-Jan-09 4:21
Ashfield30-Jan-09 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.