⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 installerdialog.vb

📁 以前做NOKIA手机与PC通信时所参考的源代码,里面包括两个程序,一个是手机文件夹浏览源码,另一个手机SIS安装程序.
💻 VB
📖 第 1 页 / 共 4 页
字号:
'Filename    : InstallerDialog.vb
'Part of     : Application installer VB.NET example
'Description : Main dialog of VBInstaller.NET example application
'Version     : 3.2
'
'This example is only to be used with PC Connectivity API version 3.2.
'Compability ("as is") with future versions is not quaranteed.
'
'Copyright (c) 2007 Nokia Corporation.
'
'This material, including but not limited to documentation and any related
'computer programs, is protected by intellectual property rights of Nokia
'Corporation and/or its licensors.
'All rights are reserved. Reproducing, modifying, translating, or
'distributing any or all of this material requires the prior written consent
'of Nokia Corporation. Nokia Corporation retains the right to make changes
'to this material at any time without notice. A copyright license is hereby
'granted to download and print a copy of this material for personal use only.
'No other license to any other intellectual property rights is granted. The
'material is provided "as is" without warranty of any kind, either express or
'implied, including without limitation, any warranty of non-infringement,
'merchantability and fitness for a particular purpose. In no event shall
'Nokia Corporation be liable for any direct, indirect, special, incidental,
'or consequential loss or damages, including but not limited to, lost profits
'or revenue,loss of use, cost of substitute program, or loss of data or
'equipment arising out of the use or inability to use the material, even if
'Nokia Corporation has been advised of the likelihood of such damages occurring.

Option Strict Off
Option Explicit On

Imports System.Runtime.InteropServices

Friend Class InstallerDialog
    Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
    Public Sub New()
        MyBase.New()
        If m_vb6FormDefInstance Is Nothing Then
            If m_InitializingDefInstance Then
                m_vb6FormDefInstance = Me
            Else
                Try
                    'For the start-up form, the first instance created is the default instance.
                    If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
                        m_vb6FormDefInstance = Me
                    End If
                Catch
                End Try
            End If
        End If
        'This call is required by the Windows Form Designer.
        InitializeComponent()
    End Sub
    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
        If Disposing Then
            Static fTerminateCalled As Boolean
            If Not fTerminateCalled Then
                UninitializePCCAPI()
                fTerminateCalled = True
            End If
            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
    Public ToolTip1 As System.Windows.Forms.ToolTip
    Public WithEvents TextSis As System.Windows.Forms.TextBox
    Public WithEvents TextJad As System.Windows.Forms.TextBox
    Public WithEvents TextJar As System.Windows.Forms.TextBox
    Public WithEvents CommandJad As System.Windows.Forms.Button
    Public WithEvents CommandSis As System.Windows.Forms.Button
    Public WithEvents CommandJar As System.Windows.Forms.Button
    Public WithEvents CommandCancel As System.Windows.Forms.Button
    Public WithEvents CommandInstall As System.Windows.Forms.Button
    Public WithEvents ComboType As System.Windows.Forms.ComboBox
    Public WithEvents ComboPhone As System.Windows.Forms.ComboBox
    Public WithEvents LabelSis As System.Windows.Forms.Label
    Public WithEvents LabelJad As System.Windows.Forms.Label
    Public WithEvents LabelJar As System.Windows.Forms.Label
    Public WithEvents LabelType As System.Windows.Forms.Label
    Public WithEvents LabelPhone As System.Windows.Forms.Label
    '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 ProgressBar1 As System.Windows.Forms.ProgressBar
    Friend WithEvents labelWait As System.Windows.Forms.Label
    Public WithEvents TextNth As System.Windows.Forms.TextBox
    Public WithEvents CommandNth As System.Windows.Forms.Button
    Friend WithEvents CommandList As System.Windows.Forms.Button
    Public WithEvents TextNGage As System.Windows.Forms.TextBox
    Public WithEvents CommandNGage As System.Windows.Forms.Button
    Public WithEvents NGageLabel As System.Windows.Forms.Label
    Friend WithEvents Timer1 As System.Windows.Forms.Timer
    Public WithEvents LabelNth As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(InstallerDialog))
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.CommandList = New System.Windows.Forms.Button
        Me.TextSis = New System.Windows.Forms.TextBox
        Me.TextJad = New System.Windows.Forms.TextBox
        Me.TextJar = New System.Windows.Forms.TextBox
        Me.CommandJad = New System.Windows.Forms.Button
        Me.CommandSis = New System.Windows.Forms.Button
        Me.CommandJar = New System.Windows.Forms.Button
        Me.CommandCancel = New System.Windows.Forms.Button
        Me.CommandInstall = New System.Windows.Forms.Button
        Me.ComboType = New System.Windows.Forms.ComboBox
        Me.ComboPhone = New System.Windows.Forms.ComboBox
        Me.LabelSis = New System.Windows.Forms.Label
        Me.LabelJad = New System.Windows.Forms.Label
        Me.LabelJar = New System.Windows.Forms.Label
        Me.LabelType = New System.Windows.Forms.Label
        Me.LabelPhone = New System.Windows.Forms.Label
        Me.ProgressBar1 = New System.Windows.Forms.ProgressBar
        Me.labelWait = New System.Windows.Forms.Label
        Me.TextNth = New System.Windows.Forms.TextBox
        Me.CommandNth = New System.Windows.Forms.Button
        Me.LabelNth = New System.Windows.Forms.Label
        Me.TextNGage = New System.Windows.Forms.TextBox
        Me.CommandNGage = New System.Windows.Forms.Button
        Me.NGageLabel = New System.Windows.Forms.Label
        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
        Me.SuspendLayout()
        '
        'CommandList
        '
        Me.CommandList.Location = New System.Drawing.Point(343, 8)
        Me.CommandList.Name = "CommandList"
        Me.CommandList.Size = New System.Drawing.Size(75, 25)
        Me.CommandList.TabIndex = 24
        Me.CommandList.Text = "List..."
        Me.ToolTip1.SetToolTip(Me.CommandList, "Lists installed applications")
        Me.CommandList.UseVisualStyleBackColor = True
        '
        'TextSis
        '
        Me.TextSis.AcceptsReturn = True
        Me.TextSis.BackColor = System.Drawing.SystemColors.Window
        Me.TextSis.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.TextSis.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TextSis.ForeColor = System.Drawing.SystemColors.WindowText
        Me.TextSis.Location = New System.Drawing.Point(96, 144)
        Me.TextSis.MaxLength = 0
        Me.TextSis.Name = "TextSis"
        Me.TextSis.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.TextSis.Size = New System.Drawing.Size(313, 20)
        Me.TextSis.TabIndex = 13
        '
        'TextJad
        '
        Me.TextJad.AcceptsReturn = True
        Me.TextJad.BackColor = System.Drawing.SystemColors.Window
        Me.TextJad.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.TextJad.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TextJad.ForeColor = System.Drawing.SystemColors.WindowText
        Me.TextJad.Location = New System.Drawing.Point(96, 112)
        Me.TextJad.MaxLength = 0
        Me.TextJad.Name = "TextJad"
        Me.TextJad.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.TextJad.Size = New System.Drawing.Size(313, 20)
        Me.TextJad.TabIndex = 11
        '
        'TextJar
        '
        Me.TextJar.AcceptsReturn = True
        Me.TextJar.BackColor = System.Drawing.SystemColors.Window
        Me.TextJar.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.TextJar.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.TextJar.ForeColor = System.Drawing.SystemColors.WindowText
        Me.TextJar.Location = New System.Drawing.Point(96, 80)
        Me.TextJar.MaxLength = 0
        Me.TextJar.Name = "TextJar"
        Me.TextJar.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.TextJar.Size = New System.Drawing.Size(313, 20)
        Me.TextJar.TabIndex = 9
        '
        'CommandJad
        '
        Me.CommandJad.BackColor = System.Drawing.SystemColors.Control
        Me.CommandJad.Cursor = System.Windows.Forms.Cursors.Default
        Me.CommandJad.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CommandJad.ForeColor = System.Drawing.SystemColors.ControlText
        Me.CommandJad.Location = New System.Drawing.Point(424, 112)
        Me.CommandJad.Name = "CommandJad"
        Me.CommandJad.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.CommandJad.Size = New System.Drawing.Size(73, 25)
        Me.CommandJad.TabIndex = 8
        Me.CommandJad.Text = "Browse..."
        Me.CommandJad.UseVisualStyleBackColor = False
        '
        'CommandSis
        '
        Me.CommandSis.BackColor = System.Drawing.SystemColors.Control
        Me.CommandSis.Cursor = System.Windows.Forms.Cursors.Default
        Me.CommandSis.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CommandSis.ForeColor = System.Drawing.SystemColors.ControlText
        Me.CommandSis.Location = New System.Drawing.Point(424, 144)
        Me.CommandSis.Name = "CommandSis"
        Me.CommandSis.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.CommandSis.Size = New System.Drawing.Size(73, 25)
        Me.CommandSis.TabIndex = 7
        Me.CommandSis.Text = "Browse..."
        Me.CommandSis.UseVisualStyleBackColor = False
        '
        'CommandJar
        '
        Me.CommandJar.BackColor = System.Drawing.SystemColors.Control
        Me.CommandJar.Cursor = System.Windows.Forms.Cursors.Default
        Me.CommandJar.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CommandJar.ForeColor = System.Drawing.SystemColors.ControlText
        Me.CommandJar.Location = New System.Drawing.Point(424, 80)
        Me.CommandJar.Name = "CommandJar"
        Me.CommandJar.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.CommandJar.Size = New System.Drawing.Size(73, 25)
        Me.CommandJar.TabIndex = 6
        Me.CommandJar.Text = "Browse..."
        Me.CommandJar.UseVisualStyleBackColor = False
        '
        'CommandCancel
        '
        Me.CommandCancel.BackColor = System.Drawing.SystemColors.Control
        Me.CommandCancel.Cursor = System.Windows.Forms.Cursors.Default
        Me.CommandCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.CommandCancel.Enabled = False
        Me.CommandCancel.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CommandCancel.ForeColor = System.Drawing.SystemColors.ControlText
        Me.CommandCancel.Location = New System.Drawing.Point(424, 40)
        Me.CommandCancel.Name = "CommandCancel"
        Me.CommandCancel.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.CommandCancel.Size = New System.Drawing.Size(73, 25)
        Me.CommandCancel.TabIndex = 5
        Me.CommandCancel.Text = "Cancel"
        Me.CommandCancel.UseVisualStyleBackColor = False
        '
        'CommandInstall
        '
        Me.CommandInstall.BackColor = System.Drawing.SystemColors.Control
        Me.CommandInstall.Cursor = System.Windows.Forms.Cursors.Default
        Me.CommandInstall.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.CommandInstall.ForeColor = System.Drawing.SystemColors.ControlText
        Me.CommandInstall.Location = New System.Drawing.Point(424, 8)
        Me.CommandInstall.Name = "CommandInstall"
        Me.CommandInstall.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.CommandInstall.Size = New System.Drawing.Size(73, 25)
        Me.CommandInstall.TabIndex = 4
        Me.CommandInstall.Text = "Install"
        Me.CommandInstall.UseVisualStyleBackColor = False
        '
        'ComboType
        '
        Me.ComboType.BackColor = System.Drawing.SystemColors.Window
        Me.ComboType.Cursor = System.Windows.Forms.Cursors.Default
        Me.ComboType.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ComboType.ForeColor = System.Drawing.SystemColors.WindowText
        Me.ComboType.Location = New System.Drawing.Point(96, 40)
        Me.ComboType.Name = "ComboType"
        Me.ComboType.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.ComboType.Size = New System.Drawing.Size(209, 22)
        Me.ComboType.TabIndex = 2
        '
        'ComboPhone
        '
        Me.ComboPhone.BackColor = System.Drawing.SystemColors.Window

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -