video

  • Thread starter Thread starter john piper
  • Start date Start date
J

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
 
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
 
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)
 
john said:
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.
 
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
 
Back
Top