Re: video

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



john piper wrote:
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.
.


Quantcast