Click here to Skip to main content
15,886,723 members
Articles / Programming Languages / Visual Basic

Play your AVI files with this DirectX video player

Rate me:
Please Sign up or sign in to vote.
4.83/5 (12 votes)
24 Apr 2013CPOL4 min read 130.1K   8K   60  
Plays AVI files using Microsoft's DirectX.AudioVideoPlayback.
Public Class frmFileInfo
    Dim f As Form

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FadeOut()
    End Sub

    Private Sub frmFileInfo_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If txtName.Text = "" Then
            Me.Close()
        End If

        If txtExtension.Text = ".avi" Then
            txtExtension.Text = "AVI FILE"
        End If
    End Sub

    Private Sub FadeOut()
        Dim cntr As Integer
        For cntr = 90 To 10 Step -10
            Me.Opacity = cntr / 100
            Me.Refresh()
            Threading.Thread.Sleep(50)
        Next cntr
        Me.Close()
    End Sub

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired
United States United States
I am currently retired.
I have no degree but I have some programming experience
when I was in college(Cobol, Pascal).

My accomplishments thus far are;
Best VB.Net article for January(2009)
Best VB.Net article for July(2009)

Comments and Discussions