Imports AxSftDirectoryLib25
Imports SftDirectoryLib25
Imports Softelvdm.OLEConvert
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 Label2 As System.Windows.Forms.Label
Friend WithEvents CloseButton As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents LabelInfoTip As System.Windows.Forms.Label
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents AxSftDirectory1 As AxSftDirectoryLib25.AxSftDirectory
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.Label2 = New System.Windows.Forms.Label
Me.CloseButton = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.LabelInfoTip = New System.Windows.Forms.Label
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.AxSftDirectory1 = New AxSftDirectoryLib25.AxSftDirectory
CType(Me.AxSftDirectory1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Label2
'
Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label2.Location = New System.Drawing.Point(136, 376)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(504, 64)
Me.Label2.TabIndex = 10
Me.Label2.Text = "Click on the SftDirectory control above and hit F1 to access help information for" & _
" SftDirectory 2.5"
Me.Label2.Visible = False
'
'CloseButton
'
Me.CloseButton.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.CloseButton.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.CloseButton.Location = New System.Drawing.Point(584, 40)
Me.CloseButton.Name = "CloseButton"
Me.CloseButton.Size = New System.Drawing.Size(64, 24)
Me.CloseButton.TabIndex = 7
Me.CloseButton.Text = "Close"
'
'Label1
'
Me.Label1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.Label1.Location = New System.Drawing.Point(8, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(640, 32)
Me.Label1.TabIndex = 9
Me.Label1.Text = "Files and folders in a multi-column, multi-selection treeview control. Supports " & _
"drag && drop, (right click) context menus, file/folder renaming and reorderable " & _
"columns (except the first column)."
'
'LabelInfoTip
'
Me.LabelInfoTip.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.LabelInfoTip.Location = New System.Drawing.Point(104, 360)
Me.LabelInfoTip.Name = "LabelInfoTip"
Me.LabelInfoTip.Size = New System.Drawing.Size(544, 72)
Me.LabelInfoTip.TabIndex = 8
Me.LabelInfoTip.Text = "Area for InfoTip"
'
'PictureBox1
'
Me.PictureBox1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(8, 360)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(88, 72)
Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage
Me.PictureBox1.TabIndex = 6
Me.PictureBox1.TabStop = False
'
'AxSftDirectory1
'
Me.AxSftDirectory1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.AxSftDirectory1.Location = New System.Drawing.Point(8, 40)
Me.AxSftDirectory1.Name = "AxSftDirectory1"
Me.AxSftDirectory1.OcxState = CType(resources.GetObject("AxSftDirectory1.OcxState"), System.Windows.Forms.AxHost.State)
Me.AxSftDirectory1.Size = New System.Drawing.Size(568, 312)
Me.AxSftDirectory1.TabIndex = 5
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(656, 438)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.CloseButton)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.LabelInfoTip)
Me.Controls.Add(Me.PictureBox1)
Me.Controls.Add(Me.AxSftDirectory1)
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.Name = "Form1"
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show
Me.Text = "FullTreeView Sample - Softel vdm, Inc."
CType(Me.AxSftDirectory1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
#End Region
'--locate-marker--
Private Sub AxSftDirectory1_SelectionFinal(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftDirectory1.SelectionFinal
If Not AxSftDirectory1.CurrentFolder Is Nothing Then
AxSftDirectory1.CurrentFolder.GetImage()
LabelInfoTip.Text = AxSftDirectory1.CurrentFolder.InfoTip
Else
PictureBox1.Image = Nothing
LabelInfoTip.Text = ""
End If
End Sub
Private Sub AxSftDirectory1_FolderImageReady(ByVal sender As Object, ByVal e As AxSftDirectoryLib25._ISftDirectoryEvents_FolderImageReadyEvent) Handles AxSftDirectory1.FolderImageReady
PictureBox1.Image = OLECvt.ToImage(e.picture)
End Sub
Private Sub CloseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseButton.Click
Application.Exit()
End Sub
End Class