Home All Groups Group Topic Archive Search About
Author
17 Dec 2006 7:17 PM
john piper
Okay,
What I have is a button that when clicked, playes a video in the default
player (Usually WMP) then closes the form.

I am using ProcessStart then Me.Close
How can I do the same thing, however play the video full screen, and then
close prior to the form closing.

I am an absolute beginer and have only begun to learn VB.  I will need the
simplest of instructions.

What I have learned is thanks to the knowledgable folks on this board.

Thank you for your help

Author
17 Dec 2006 7:56 PM
Cor Ligthert [MVP]
John,

Why do you take as absolute beginner the most difficult part from Windows
and programming to start.

For what you want, you need in fact interop and it those are not there the
use of application program interfaces.

You process start is nothing more than a kind of replacing a Dos command.

Cor

Show quoteHide quote
"john piper" <j***@piper.com> schreef in bericht
news:zJghh.5$KF2.3@tornado.tampabay.rr.com...
> Okay,
> What I have is a button that when clicked, playes a video in the default
> player (Usually WMP) then closes the form.
>
> I am using ProcessStart then Me.Close
> How can I do the same thing, however play the video full screen, and then
> close prior to the form closing.
>
> I am an absolute beginer and have only begun to learn VB.  I will need the
> simplest of instructions.
>
> What I have learned is thanks to the knowledgable folks on this board.
>
> Thank you for your help
>
Author
17 Dec 2006 8:23 PM
john piper
I am thinking if I was not a biginer, and I had the knowledge that most of
these folks in here have, then I would not be doing things wrong.  I am
taking this up as a hobby, but do want to learn (slowly)
Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:euLN0UhIHHA.1816@TK2MSFTNGP06.phx.gbl...
> John,
>
> Why do you take as absolute beginner the most difficult part from Windows
> and programming to start.
>
> For what you want, you need in fact interop and it those are not there the
> use of application program interfaces.
>
> You process start is nothing more than a kind of replacing a Dos command.
>
> Cor
>
> "john piper" <j***@piper.com> schreef in bericht
> news:zJghh.5$KF2.3@tornado.tampabay.rr.com...
>> Okay,
>> What I have is a button that when clicked, playes a video in the default
>> player (Usually WMP) then closes the form.
>>
>> I am using ProcessStart then Me.Close
>> How can I do the same thing, however play the video full screen, and then
>> close prior to the form closing.
>>
>> I am an absolute beginer and have only begun to learn VB.  I will need
>> the simplest of instructions.
>>
>> What I have learned is thanks to the knowledgable folks on this board.
>>
>> Thank you for your help
>>
>
>
Author
17 Dec 2006 11:24 PM
ShaneO
john piper wrote:
Show quoteHide quote
> Okay,
> What I have is a button that when clicked, playes a video in the default
> player (Usually WMP) then closes the form.
>
> I am using ProcessStart then Me.Close
> How can I do the same thing, however play the video full screen, and then
> close prior to the form closing.
>
> I am an absolute beginer and have only begun to learn VB.  I will need the
> simplest of instructions.
>
> What I have learned is thanks to the knowledgable folks on this board.
>
> Thank you for your help
>
>
To launch a Process "Full Screen", I believe you are looking for the
following -

Dim StartInfo As New ProcessStartInfo("Your Filename Here")
StartInfo.WindowStyle = ProcessWindowStyle.Maximized
Process.Start(StartInfo)

As for the rest of your question - Do you want to Close YOUR application
before the Process Completes (If so, just add Me.Close) or do you want
to wait for the PROCESS to Close first? (If so, post back and I'll look
at the code for that).

By the way, the above code basically came from typing "Process.Start"
into the Help page.  You might like to examine some of the examples in
there yourself.

Hope this helps.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Author
18 Dec 2006 3:39 PM
Keith
John-

I'm also a beginner, and also working on an application that plays videos. I
found that it was very simple to download MS's WMP SDK (or named something
like that, I'm not at home so I don't have access to my PC to check). From
there, I added a WMP control on my userform, and can easily load and play
video clips (AVI clips, in my case) right in my application with a few lines
of code.

Depending on what you are trying to do, it may be easier than trying to work
with an external player. If you provide more detail about what you are
trying to accomplish, the MVPs and other gurus here have been very helpful
and can probably give you specific advice. If I understand correctly that
you want to play a video, close the video window, then close your program-
if you embed the video player in your userform, then you've just saved a
step or two.

Best,
Keith

Show quoteHide quote
"john piper" <j***@piper.com> wrote in message
news:zJghh.5$KF2.3@tornado.tampabay.rr.com...
> Okay,
> What I have is a button that when clicked, playes a video in the default
> player (Usually WMP) then closes the form.
>
> I am using ProcessStart then Me.Close
> How can I do the same thing, however play the video full screen, and then
> close prior to the form closing.
>
> I am an absolute beginer and have only begun to learn VB.  I will need the
> simplest of instructions.
>
> What I have learned is thanks to the knowledgable folks on this board.
>
> Thank you for your help
>