Results 1 to 3 of 3

Thread: Avi

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    13

    Avi

    Hey guys,,

    I have an AVI file I wanna play it within the form ...

    I knew how to play it outside the form ,,,


    Help me plz

  2. #2
    Member
    Join Date
    Jan 2006
    Location
    Czech Republic
    Posts
    52

    Re: Avi

    Avi

    --------------------------------------------------------------------------------

    Hi,
    So aplly control Windows Media Player or API function mciSendstring, but WMP is better.

    EXAMPLE
    ---------
    'Insert in form control WindowsMedia

    Private Sub Form_Load()
    wmp.uiMode = "none"
    wmp.URL = FileName
    wmp.Controls.play
    End Sub

    Private Sub Form_Resize()
    wmp.Width = Me.Width
    wmp.Height = Me.Height
    End Sub

  3. #3
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: Avi

    if using a windows media player control as salcman.vladimir said try this

    VB Code:
    1. 'asssuming your windows media player control  is called wmp
    2. private sub Command1_click()
    3. wmp.URL= "path of Avi Here"
    4. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width