Click here to Skip to main content
15,929,796 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Deployment Pin
Christian Graus28-May-05 11:54
protectorChristian Graus28-May-05 11:54 
GeneralRe: Deployment Pin
rwestgraham28-May-05 16:20
rwestgraham28-May-05 16:20 
GeneralRe: Deployment Pin
Binary011029-May-05 21:28
Binary011029-May-05 21:28 
GeneralObject reference not set to an instance of an object. Pin
Manik Nath28-May-05 3:43
Manik Nath28-May-05 3:43 
GeneralRe: Object reference not set to an instance of an object. Pin
Colin Angus Mackay28-May-05 6:46
Colin Angus Mackay28-May-05 6:46 
QuestionAnyone know how to set the listview forecolor and backgroundcolor? Pin
Member 193588028-May-05 3:24
Member 193588028-May-05 3:24 
AnswerRe: Anyone know how to set the listview forecolor and backgroundcolor? Pin
Andy Davies29-May-05 5:17
Andy Davies29-May-05 5:17 
GeneralImage from Mpeg Pin
Anonymous28-May-05 0:55
Anonymous28-May-05 0:55 
Hi,

I use the following code to play a movie clip in a picture box on a form.
The movie and picture box are sized to be a specified width and height using
the variables 'moviewidth' and 'movieheight'. The window is called 'main'
and the picture box in it is 'mpicpicture'. The mpeg file to be displayed is
'FileName'.

Last$ = main.mpicpicture.hWnd & " Style " & &H40000000

ToDo$ = "open " + FileName + " Type MPEGVideo Alias video1 parent " &
Last$

retVal = mciSendString(ToDo$, 0&, 0, 0)
retVal = mciSendString("put video1 window at 0 0 " +
Trim$(Str$(moviewidth)) + " " + Trim$(Str$(movieheight)), 0&, 0, 0)
retVal = mciSendString("play video1 ", 0&, 0, 0)

The movie plays fine in the picture box. I have added buttons which pause
and resume the playing of the video using similar code to the above (that
is, replace the 'play' command with 'pause' or 'resume').

When the movie clip is paused I would like to copy the frame currently
showing to another picture box to become a still picture in that box. I have
tried such things as

main.mpicpicture.picture = main.mpicpicture.image
main.mpiccopy.picture = main.mpicpicture.picture

All that happens is that the new picture box resizes to the same size as the
one showing the video but it remains blank. Is there any way to access the
picture content of the video clip?

Can someone help me with this problem?

Thank you.


Generalcopy files like windows Pin
Cool_zat27-May-05 22:58
Cool_zat27-May-05 22:58 
GeneralRe: copy files like windows Pin
Christian Graus28-May-05 1:00
protectorChristian Graus28-May-05 1:00 
GeneralRestrict Textbox with specified Language Pin
Anonymous27-May-05 21:37
Anonymous27-May-05 21:37 
GeneralRetriveing Image Pin
pmathur127-May-05 21:17
susspmathur127-May-05 21:17 
GeneralRe: Retriveing Image Pin
Christian Graus28-May-05 1:01
protectorChristian Graus28-May-05 1:01 
GeneralRe: Retriveing Image Pin
Mekong River28-May-05 19:39
Mekong River28-May-05 19:39 
Generalerror in mail program Pin
Murtuza Husain Miyan Patel27-May-05 20:45
professionalMurtuza Husain Miyan Patel27-May-05 20:45 
GeneralRe: error in mail program Pin
Fernando Soto28-May-05 6:46
Fernando Soto28-May-05 6:46 
GeneralRe: error in mail program Pin
Murtuza Husain Miyan Patel28-May-05 20:52
professionalMurtuza Husain Miyan Patel28-May-05 20:52 
Generalvalidating numbers in a textbox Pin
Binary011027-May-05 17:06
Binary011027-May-05 17:06 
GeneralRe: validating numbers in a textbox Pin
S. Senthil Kumar27-May-05 21:17
S. Senthil Kumar27-May-05 21:17 
GeneralRe: validating numbers in a textbox Pin
Christian Graus28-May-05 1:03
protectorChristian Graus28-May-05 1:03 
GeneralRe: validating numbers in a textbox Pin
Binary011028-May-05 6:16
Binary011028-May-05 6:16 
GeneralRe: validating numbers in a textbox Pin
devitj24-Aug-05 12:37
devitj24-Aug-05 12:37 
GeneralCurios about List Boxes Pin
Mtognetti27-May-05 11:48
Mtognetti27-May-05 11:48 
GeneralRe: Curios about List Boxes Pin
Robert Rohde28-May-05 4:38
Robert Rohde28-May-05 4:38 
GeneralRe: Curios about List Boxes Pin
Mtognetti28-May-05 10:08
Mtognetti28-May-05 10:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.