Media Player 9 Control Help

  • Thread starter Thread starter Overburn
  • Start date Start date
O

Overburn

I am trying to create a "mod" of media player 9. I am trying to make it so
that when I start the program, a file is loaded into a media player 9
control, and then is ste to full screen and played. Now thats the easy
part, the part I need help with is when the user right clicks on the media
player object, the user is first asked to enter a password before he can
access the popup menu.

Any ideas how? I tried something like this already

//Code

Private Sub player_ClickEvent(ByVal sender As Object, ByVal e As
AxWMPLib._WMPOCXEvents_ClickEvent) Handles player.ClickEvent

If e.nButton = 2 Then

'2 is right button

Dim pass = InputBox("Please Enter Password", "Password Required")

If (pass <> PASSWORD) Then

'allow user to access menu

Else 'wrong password

'refresh the player back to fullscreen and "locked"

End If

Else ' they clicked the left mouse button

'keep player playing fullscreen and "locked"

End If

End Sub
 
Hi,

I do not see the difference with a normal, password splash screen, however,
maybe I do oversee something, can you than tell me what?

Cor
 
On a normal password splash screen will the MP9 Object still allow the user
to right click without activating the password dialog?
 
On a normal password splash screen will the MP9 Object still allow the
user
to right click without activating the password dialog?

When you do it like this (pseudo code)

loadevent of a form not using an application module like some do.
dim frmlogin as form2
frmlogin.showdialog
if frmlogin.password = false then me.close
me.dispose
myMP9object = new.......... bla bla bla

I do not see how they would get it working in this case using your program.

Cor
 
I think I have been misunderstood or I am just really dense...

The purpose of this program is so that I can put the "screensaver" on my
computers at work (I work in retail) so that kids and other trouble makers
dont start getting on to the computers and start messing with all the built
in games and stuff. Also, where I work we have this really dumb movie
playing at all times that supposedly "helps" us sell computers... So I
decided I would make a program that

A. Loads WindowsMedia Player object and plays the DVD in the drive
B. When the movie is playing, a password must be entered in order to do
anything (i.e. exit fullscreen, pause, stop, etc...)

I have been successful in part A, but with B, it seems no matter what I do,
I can not stop the user from just right-clicking into the popup menu and
closing the program in order to play games and such...

Hope I have been more clear and not made an ass of myself...
 
Back
Top