Imports AxSftButtonLib25
Imports SftButtonLib25
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents label1 As System.Windows.Forms.Label
Friend WithEvents button1 As System.Windows.Forms.Button
Friend WithEvents AxSftButtonDownload As AxSftButtonLib25.AxSftButton
Friend WithEvents AxSftButtonFind As AxSftButtonLib25.AxSftButton
Friend WithEvents AxSftButtonSearch As AxSftButtonLib25.AxSftButton
Friend WithEvents SftHelperComponent1 As Softelvdm.OCXHelper.SftHelperComponent
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.AxSftButtonDownload = New AxSftButtonLib25.AxSftButton
Me.AxSftButtonFind = New AxSftButtonLib25.AxSftButton
Me.label1 = New System.Windows.Forms.Label
Me.button1 = New System.Windows.Forms.Button
Me.AxSftButtonSearch = New AxSftButtonLib25.AxSftButton
Me.SftHelperComponent1 = New Softelvdm.OCXHelper.SftHelperComponent(Me.components)
CType(Me.AxSftButtonDownload, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.AxSftButtonFind, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.AxSftButtonSearch, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'AxSftButtonDownload
'
Me.AxSftButtonDownload.Location = New System.Drawing.Point(88, 152)
Me.AxSftButtonDownload.Name = "AxSftButtonDownload"
Me.AxSftButtonDownload.OcxState = CType(resources.GetObject("AxSftButtonDownload.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxSftButtonDownload.Size = New System.Drawing.Size(40, 26)
Me.AxSftButtonDownload.TabIndex = 7
Me.AxSftButtonDownload.TabStop = False
'
'AxSftButtonFind
'
Me.AxSftButtonFind.Location = New System.Drawing.Point(224, 72)
Me.AxSftButtonFind.Name = "AxSftButtonFind"
Me.AxSftButtonFind.OcxState = CType(resources.GetObject("AxSftButtonFind.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxSftButtonFind.Size = New System.Drawing.Size(96, 88)
Me.AxSftButtonFind.TabIndex = 5
'
'label1
'
Me.label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label1.Location = New System.Drawing.Point(8, 8)
Me.label1.Name = "label1"
Me.label1.Size = New System.Drawing.Size(280, 24)
Me.label1.TabIndex = 6
Me.label1.Text = "SftButton/OCX And Animations"
'
'button1
'
Me.button1.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.button1.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.button1.Location = New System.Drawing.Point(296, 8)
Me.button1.Name = "button1"
Me.button1.Size = New System.Drawing.Size(64, 24)
Me.button1.TabIndex = 8
Me.button1.Text = "Close"
'
'AxSftButtonSearch
'
Me.AxSftButtonSearch.Location = New System.Drawing.Point(32, 56)
Me.AxSftButtonSearch.Name = "AxSftButtonSearch"
Me.AxSftButtonSearch.OcxState = CType(resources.GetObject("AxSftButtonSearch.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxSftButtonSearch.Size = New System.Drawing.Size(136, 64)
Me.AxSftButtonSearch.TabIndex = 4
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.CancelButton = Me.button1
Me.ClientSize = New System.Drawing.Size(368, 214)
Me.Controls.Add(Me.AxSftButtonDownload)
Me.Controls.Add(Me.AxSftButtonFind)
Me.Controls.Add(Me.label1)
Me.Controls.Add(Me.button1)
Me.Controls.Add(Me.AxSftButtonSearch)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.Name = "Form1"
Me.Text = "Softel vdm, Inc. - Animations Sample"
CType(Me.AxSftButtonDownload, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.AxSftButtonFind, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.AxSftButtonSearch, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
#End Region
'--locate-marker--
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
Application.Exit()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Define all animations at run-time using the AVIPlay method
AxSftButtonSearch.AVIPlay(1, "..\Search.avi", 0, -1)
AxSftButtonFind.AVIPlay(1, "..\FindComp.avi", 0, -1)
AxSftButtonDownload.AVIPlay(1, "..\Download.avi", 0, -1)
End Sub
End Class