DVD Player : DVD Player « Windows « VB.Net Tutorial

VB.Net Tutorial
1. Language Basics
2. Data Type
3. Operator
4. Statements
5. Date Time
6. Class Module
7. Development
8. Collections
9. Generics
10. Attributes
11. Event
12. Stream File
13. GUI
14. GUI Applications
15. 2D Graphics
16. I18N Internationlization
17. Reflection
18. Regular Expressions
19. Security
20. Socket Network
21. Thread
22. Windows
23. XML
24. Database ADO.net
25. Design Patterns
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial » Windows » DVD Player 
22. 25. 1. DVD Player
 


Imports System.Windows.Forms

public class DVDPalyer
   public Shared Sub Main
        Application.Run(New Form1)
   End Sub
End class

Public Class Form1
    Inherits System.Windows.Forms.Form

    Public Sub New()
        MyBase.New()

        InitializeComponent()

    End Sub

    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is NothingThen
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    Private components As System.ComponentModel.IContainer

    Friend WithEvents AxMSWebDVD1 As AxMSWEBDVDLib.AxMSWebDVD
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents Button3 As System.Windows.Forms.Button
    Friend WithEvents Button4 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.AxMSWebDVD1 = New AxMSWEBDVDLib.AxMSWebDVD
        Me.Button1 = New System.Windows.Forms.Button
        Me.Button2 = New System.Windows.Forms.Button
        Me.Button3 = New System.Windows.Forms.Button
        Me.Button4 = New System.Windows.Forms.Button
        CType(Me.AxMSWebDVD1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'AxMSWebDVD1
        '
        Me.AxMSWebDVD1.Enabled = True
        Me.AxMSWebDVD1.Location = New System.Drawing.Point(88)
        Me.AxMSWebDVD1.Name = "AxMSWebDVD1"
        Me.AxMSWebDVD1.OcxState = CType(resources.GetObject("AxMSWebDVD1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.AxMSWebDVD1.Size = New System.Drawing.Size(272200)
        Me.AxMSWebDVD1.TabIndex = 0
        '
        'Button1
        '
        Me.Button1.Location = New System.Drawing.Point(32224)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(5632)
        Me.Button1.TabIndex = 1
        Me.Button1.Text = "Player"
        '
        'Button2
        '
        Me.Button2.Location = New System.Drawing.Point(88224)
        Me.Button2.Name = "Button2"
        Me.Button2.Size = New System.Drawing.Size(5632)
        Me.Button2.TabIndex = 2
        Me.Button2.Text = "Pause"
        '
        'Button3
        '
        Me.Button3.Location = New System.Drawing.Point(144224)
        Me.Button3.Name = "Button3"
        Me.Button3.Size = New System.Drawing.Size(5632)
        Me.Button3.TabIndex = 3
        Me.Button3.Text = "Stop"
        '
        'Button4
        '
        Me.Button4.Location = New System.Drawing.Point(200224)
        Me.Button4.Name = "Button4"
        Me.Button4.Size = New System.Drawing.Size(5632)
        Me.Button4.TabIndex = 4
        Me.Button4.Text = "Eject"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(513)
        Me.ClientSize = New System.Drawing.Size(292266)
        Me.Controls.Add(Me.Button4)
        Me.Controls.Add(Me.Button3)
        Me.Controls.Add(Me.Button2)
        Me.Controls.Add(Me.Button1)
        Me.Controls.Add(Me.AxMSWebDVD1)
        CType(Me.AxMSWebDVD1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgsHandles Button1.Click
        AxMSWebDVD1.Play()
        Button2.Enabled = True
        Button3.Enabled = True
        Button1.Enabled = False
        Button4.Enabled = False
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgsHandles Button2.Click
        AxMSWebDVD1.Pause()
        Button1.Enabled = True
        Button3.Enabled = True
        Button4.Enabled = False
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgsHandles Button3.Click
        AxMSWebDVD1.Stop()
        Button2.Enabled = False
        Button1.Enabled = True
        Button4.Enabled = True
    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgsHandles Button4.Click
        AxMSWebDVD1.Eject()
        Button1.Enabled = False
        Button2.Enabled = False
        Button3.Enabled = False
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgsHandles MyBase.Load
        Button1.Enabled = True
        Button2.Enabled = False
        Button3.Enabled = False
        Button4.Enabled = False
    End Sub
End Class

        
22. 25. DVD Player
22. 25. 1. DVD Player
ww___w.__ja___v_a__2__s__._c__o_m_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.