|
-
Feb 22nd, 2010, 05:08 AM
#1
Thread Starter
Lively Member
How I can show the video on the limit of PictureBox
How I can show the video on the limit of PictureBox this is my example in the link :
Video In PictureBox
-
Feb 22nd, 2010, 07:48 AM
#2
Re: How I can show the video on the limit of PictureBox
Try this:
Code:
MMControl1.hWndDisplay = Picture1.hWnd
It will display the Video inside the Picturebox ...
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Feb 22nd, 2010, 01:36 PM
#3
Re: How I can show the video on the limit of PictureBox
My Picture/video Viewer will show you how to play videos.
-
Feb 22nd, 2010, 02:41 PM
#4
-
Feb 23rd, 2010, 02:58 AM
#5
Thread Starter
Lively Member
Re: How I can show the video on the limit of PictureBox
 Originally Posted by akhileshbc
Try this:
Code:
MMControl1.hWndDisplay = Picture1.hWnd
It will display the Video inside the Picturebox ... 
i know this but i want to show the vidio in the limit of Picturebox for example the width of Picturebox =4000 & the height of Picturebox i want to show video in this area that mean the heihgt of video=3000 & widith of video=4000
-
Feb 23rd, 2010, 06:45 AM
#6
Re: How I can show the video on the limit of PictureBox
 Originally Posted by SNIPER.PS
i know this but i want to show the vidio in the limit of Picturebox for example the width of Picturebox =4000 & the height of Picturebox i want to show video in this area that mean the heihgt of video=3000 & widith of video=4000
Have you checked Marty's project...(post #3) .... ?
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Mar 2nd, 2010, 01:07 PM
#7
Thread Starter
Lively Member
Re: How I can show the video on the limit of PictureBox
please repaire my project
-
Mar 2nd, 2010, 04:00 PM
#8
Re: How I can show the video on the limit of PictureBox
I assume you are trying to play AVI movies. If so then add a Reference to the Microsoft Scripting Runtime and then...
Code:
Private Sub Command1_Click()
Dim FSO As New FileSystemObject
CommonDialog1.ShowOpen
MMControl1.Command = "stop"
If UCase$(Right$(CommonDialog1.FileName, 4)) = ".AVI" Then
On Error Resume Next
' Create a copy with an mpg file extension
Kill App.Path & "\temp.mpg"
On Error GoTo 0
FSO.CopyFile CommonDialog1.FileName, App.Path & "\temp.mpg"
MMControl1.FileName = App.Path & "\temp.mpg"
Else
MMControl1.FileName = CommonDialog1.FileName
End If
MMControl1.Command = "open"
MMControl1.Command = "play"
End Sub
-
Mar 9th, 2010, 05:05 AM
#9
Thread Starter
Lively Member
Re: How I can show the video on the limit of PictureBox
can you repair my project and upload it on link........pleas
-
Mar 9th, 2010, 11:20 AM
#10
Re: How I can show the video on the limit of PictureBox
You can easily do that yourself.
- Replace your Command1_Click code with what I posted above.
- Go to Project|References and select Microsoft Scripting Runtime.
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
|