|
-
May 17th, 2001, 10:59 PM
#1
Thread Starter
Lively Member
-
May 18th, 2001, 12:34 PM
#2
Frenzied Member
Try this:
Code:
Picture1.With = Me.ScaleWidth
Picture1.Height = Me.ScaleHeight
Me.BorderStyle = 0
Me.WindowState = 2
-
May 18th, 2001, 08:11 PM
#3
Thread Starter
Lively Member
That's not working...
Hi Cybercarsten,
I tried your idea. Only the Picture box is getting maximized and the video init is not getting maximized. Any other Idea. Please help me. Anyway thank you for ur suggestion.
Regards,
Ramanan.
-
May 20th, 2001, 11:20 AM
#4
Fanatic Member
This doesn't use a picturebox or the multimedia control, but it does work (should work for other types than AVI too, but haven't tested it):
Code:
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" _
(ByVal lpstrCommand As String, ByVal lpstrReturnString As String, _
ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Public Function PlayAVI(sFileName As String, bFullScreen As Boolean)
Dim sCommand As String
If bFullScreen Then
sCommand = "play " & sFileName & " fullscreen"
Else
sCommand = "play " & sFileName
End If
Call mciSendString(sCommand, 0&, 0, 0&)
End Function
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
May 21st, 2001, 12:47 AM
#5
Thread Starter
Lively Member
It's Working But the Video Flashes and becomes Invisible...
Hi Psychomark,
Your example worked but the Video Flashed for a Moment and became Invisible. I tried AVI and Video Cd Files. Both have the Same Result. In my example I can see the Movie in a Picture Box. Is it posssible to specify a Destination here... Please help me. Anyway thanks for ur help.
Regards,
-
May 21st, 2001, 01:36 AM
#6
Fanatic Member
I'm sure there's a way to specify a destination in the command string, but I don't really know how at the moment (I think I saw it once though)...
But what would be the point in it? You would have to maximize the form anyways. About the flashes, the only ones I got was between two movies, so I just put a black maximized form behind it 
Search at PlanetSourceCode for playing AVI's on Form's or PictureBoxes, I think that's where I got the code once...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
May 21st, 2001, 02:03 AM
#7
Thread Starter
Lively Member
I can't understand what u Say...?
Hi Psycho,
I can't understand what u r doing according to which what you've told below...
But what would be the point in it? You would have to maximize the form anyways. About the flashes, the only ones I got was between two movies, so I just put a black maximized form behind it
Can u Please explain it....
-
May 21st, 2001, 02:05 AM
#8
Fanatic Member
Mhhh....doesn't make much sense to me either 
Anyways, forget that part and search on PlanetSourceCode for the solution, I'm sure it's there...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|