这是一个完整的电脑发音程序,用vb.net写的,如果有人需要修改使用的可以参考
Imports System
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
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
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem3 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem5 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem6 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem7 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem8 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem9 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem10 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem11 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem12 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem13 As System.Windows.Forms.MenuItem
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents DataGrid1 As System.Windows.Forms.DataGrid
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
Friend WithEvents Button6 As System.Windows.Forms.Button
Friend WithEvents Button7 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents OleDbConnection1 As System.Data.OleDb.OleDbConnection
Friend WithEvents MenuItem14 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem15 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem16 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem17 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem18 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem19 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem20 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem21 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem22 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem23 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem24 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem25 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem26 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem27 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem28 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem29 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem30 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem31 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem32 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem33 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem34 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem35 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem36 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem37 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem38 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem39 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem40 As System.Windows.Forms.MenuItem
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents RadioButton1 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
Friend WithEvents Button8 As System.Windows.Forms.Button
Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox
Friend WithEvents PictureBox3 As System.Windows.Forms.PictureBox
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents MenuItem41 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem42 As System.Windows.Forms.MenuItem
Friend WithEvents FontDialog1 As System.Windows.Forms.FontDialog
Friend WithEvents ColorDialog1 As System.Windows.Forms.ColorDialog
Friend WithEvents MenuItem43 As System.Windows.Forms.MenuItem
Friend WithEvents RadioButton3 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton4 As System.Windows.Forms.RadioButton
Friend WithEvents RadioButton5 As System.Windows.Forms.RadioButton
Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
Friend WithEvents Button5 As System.Windows.Forms.Button
Friend WithEvents TrackBar1 As System.Windows.Forms.TrackBar
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.MenuItem8 = New System.Windows.Forms.MenuItem
Me.MenuItem9 = New System.Windows.Forms.MenuItem
Me.MenuItem13 = New System.Windows.Forms.MenuItem
Me.MenuItem12 = New System.Windows.Forms.MenuItem
Me.MenuItem11 = New System.Windows.Forms.MenuItem
Me.MenuItem10 = New System.Windows.Forms.MenuItem
Me.MenuItem1 = New System.Windows.Forms.MenuItem
Me.MenuItem2 = New System.Windows.Forms.MenuItem
Me.MenuItem14 = New System.Windows.Forms.MenuItem
Me.MenuItem15 = New System.Windows.Forms.MenuItem
Me.MenuItem16 = New System.Windows.Forms.MenuItem
Me.MenuItem17 = New System.Windows.Forms.MenuItem
Me.MenuItem18 = New System.Windows.Forms.MenuItem
Me.MenuItem19 = New System.Windows.Forms.MenuItem
Me.MenuItem20 = New System.Windows.Forms.MenuItem
Me.MenuItem21 = New System.Windows.Forms.MenuItem
Me.MenuItem22 = New System.Windows.Forms.MenuItem
Me.MenuItem23 = New System.Windows.Forms.MenuItem
Me.MenuItem3 = New System.Windows.Forms.MenuItem
Me.MenuItem4 = New System.Windows.Forms.MenuItem
Me.MenuItem5 = New System.Windows.Forms.MenuItem
Me.MenuItem6 = New System.Windows.Forms.MenuItem
Me.MenuItem7 = New System.Windows.Forms.MenuItem
Me.MenuItem24 = New System.Windows.Forms.MenuItem
Me.MenuItem25 = New System.Windows.Forms.MenuItem
Me.MenuItem31 = New System.Windows.Forms.MenuItem
Me.MenuItem32 = New System.Windows.Forms.MenuItem
Me.MenuItem33 = New System.Windows.Forms.MenuItem
Me.MenuItem34 = New System.Windows.Forms.MenuItem
Me.MenuItem35 = New System.Windows.Forms.MenuItem
Me.MenuItem36 = New System.Windows.Forms.MenuItem
Me.MenuItem37 = New System.Windows.Forms.MenuItem
Me.MenuItem38 = New System.Windows.Forms.MenuItem
Me.MenuItem39 = New System.Windows.Forms.MenuItem
Me.MenuItem40 = New System.Windows.Forms.MenuItem
Me.MenuItem26 = New System.Windows.Forms.MenuItem
Me.MenuItem27 = New System.Windows.Forms.MenuItem
Me.MenuItem28 = New System.Windows.Forms.MenuItem
Me.MenuItem29 = New System.Windows.Forms.MenuItem
Me.MenuItem30 = New System.Windows.Forms.MenuItem
Me.MenuItem41 = New System.Windows.Forms.MenuItem
Me.MenuItem42 = New System.Windows.Forms.MenuItem
Me.MenuItem43 = New System.Windows.Forms.MenuItem
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.DataGrid1 = New System.Windows.Forms.DataGrid
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
Me.Button6 = New System.Windows.Forms.Button
Me.Button7 = New System.Windows.Forms.Button
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection
Me.Label1 = New System.Windows.Forms.Label
Me.RadioButton1 = New System.Windows.Forms.RadioButton
Me.RadioButton2 = New System.Windows.Forms.RadioButton
Me.Button8 = New System.Windows.Forms.Button
Me.PictureBox2 = New System.Windows.Forms.PictureBox
Me.PictureBox3 = New System.Windows.Forms.PictureBox
Me.GroupBox1 = New System.Windows.Forms.GroupBox
Me.GroupBox2 = New System.Windows.Forms.GroupBox
Me.Button5 = New System.Windows.Forms.Button
Me.RadioButton5 = New System.Windows.Forms.RadioButton
Me.RadioButton4 = New System.Windows.Forms.RadioButton
Me.RadioButton3 = New System.Windows.Forms.RadioButton
Me.FontDialog1 = New System.Windows.Forms.FontDialog
Me.ColorDialog1 = New System.Windows.Forms.ColorDialog
Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
Me.TrackBar1 = New System.Windows.Forms.TrackBar
CType(Me.DataGrid1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
CType(Me.TrackBar1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'MainMenu1
'
Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem8, Me.MenuItem1, Me.MenuItem24, Me.MenuItem41})
'
'MenuItem8
'
Me.MenuItem8.Index = 0
Me.MenuItem8.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem9, Me.MenuItem11, Me.MenuItem10})
Me.MenuItem8.Text = "文件(&F)"
'
'MenuItem9
'
Me.MenuItem9.Index = 0
Me.MenuItem9.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem13, Me.MenuItem12})
Me.MenuItem9.Text = "桌面"
'
'MenuItem13
'
Me.MenuItem13.Index = 0
Me.MenuItem13.Text = "默认桌面"
'
'MenuItem12
'
Me.MenuItem12.Index = 1
Me.MenuItem12.Text = "自定义桌面"
'
'MenuItem11
'
Me.MenuItem11.Index = 1
Me.MenuItem11.Text = "-"
'
'MenuItem10
'
Me.MenuItem10.Index = 2
Me.MenuItem10.Text = "退出"
'
'MenuItem1
'
Me.MenuItem1.Index = 1
Me.MenuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem2, Me.MenuItem3, Me.MenuItem4, Me.MenuItem5, Me.MenuItem6, Me.MenuItem7})
Me.MenuItem1.Text = "英语900句(&E)"
'
'MenuItem2
'
Me.MenuItem2.Index = 0
Me.MenuItem2.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem14, Me.MenuItem15, Me.MenuItem16, Me.MenuItem17, Me.MenuItem18, Me.MenuItem19, Me.MenuItem20, Me.MenuItem21, Me.MenuItem22, Me.MenuItem23})
Me.MenuItem2.Text = "第一册"
'
'MenuItem14
'
Me.MenuItem14.Index = 0
Me.MenuItem14.Text = "一、 Greetings 问候语"
'
'MenuItem15
'
Me.MenuItem15.Index = 1
Me.MenuItem15.Text = "二、Expression In Class 课堂用语"
'
'MenuItem16
'
Me.MenuItem16.Index = 2
Me.MenuItem16.Text = "三、Identifying Objects 辨别物品"
'
'MenuItem17
'
Me.MenuItem17.Index = 3
Me.MenuItem17.Text = "四、About Belongings 关于所有物"
'
'MenuItem18
'
Me.MenuItem18.Index = 4
Me.MenuItem18.Text = "五、Identifying People 辨别身份"
'
'MenuItem19
'
Me.MenuItem19.Index = 5
Me.MenuItem19.Text = "六、 About Introduction 关于介绍"
'
'MenuItem20
'
Me.MenuItem20.Index = 6
Me.MenuItem20.Text = "七、Year, Month And Day 年、月、日"
'
'MenuItem21
'
Me.MenuItem21.Index = 7
Me.MenuItem21.Text = "八、Talking About Objects 谈论事物"
'
'MenuItem22
'
Me.MenuItem22.Index = 8
Me.MenuItem22.Text = "九、Talking About Time 叙述时间"
'
'MenuItem23
'
Me.MenuItem23.Index = 9
Me.MenuItem23.Text = "十、About Dates 关于日期"
'
'MenuItem3
'
Me.MenuItem3.Index = 1
Me.MenuItem3.Text = "第二册"
'
'MenuItem4
'
Me.MenuItem4.Index = 2
Me.MenuItem4.Text = "第三册"
'
'MenuItem5
'
Me.MenuItem5.Index = 3
Me.MenuItem5.Text = "第四册"
'
'MenuItem6
'
Me.MenuItem6.Index = 4
Me.MenuItem6.Text = "第五册"
'
'MenuItem7
'
Me.MenuItem7.Index = 5
Me.MenuItem7.Text = "第六册"
'
'MenuItem24a
'
Me.MenuItem24.Index = 2
Me.MenuItem24.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem25, Me.MenuItem26, Me.MenuItem27, Me.MenuItem28, Me.MenuItem29, Me.MenuItem30})
Me.MenuItem24.Text = "汉语900句(&C)"
'
'MenuItem25
'
Me.MenuItem25.Index = 0
Me.MenuItem25.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem31, Me.MenuItem32, Me.MenuItem33, Me.MenuItem34, Me.MenuItem35, Me.MenuItem36, Me.MenuItem37, Me.MenuItem38, Me.MenuItem39, Me.MenuItem40})
Me.MenuItem25.Text = "第一册"
'
'MenuItem31
'
Me.MenuItem31.Index = 0
Me.MenuItem31.Text = "一、 Greetings 问候语"
'
'MenuItem32
'
Me.MenuItem32.Index = 1
Me.MenuItem32.Text = "二、Expression In Class 课堂用语"
'
'MenuItem33
'
Me.MenuItem33.Index = 2
Me.MenuItem33.Text = "三、Identifying Objects 辨别物品"
'
'MenuItem34
'
Me.MenuItem34.Index = 3
Me.MenuItem34.Text = "四、About Belongings 关于所有物"
'
'MenuItem35
'
Me.MenuItem35.Index = 4
Me.MenuItem35.Text = "五、Identifying People 辨别身份"
'
'MenuItem36
'
Me.MenuItem36.Index = 5
Me.MenuItem36.Text = "六、 About Introduction 关于介绍"
'
'MenuItem37
'
Me.MenuItem37.Index = 6
Me.MenuItem37.Text = "七、Year, Month And Day 年、月、日"
'
'MenuItem38
'
Me.MenuItem38.Index = 7
Me.MenuItem38.Text = "八、Talking About Objects 谈论事物"
'
'MenuItem39
'
Me.MenuItem39.Index = 8
Me.MenuItem39.Text = "九、Talking About Time 叙述时间"
'
'MenuItem40
'
Me.MenuItem40.Index = 9
Me.MenuItem40.Text = "十、About Dates 关于日期"
'
'MenuItem26
'
Me.MenuItem26.Index = 1
Me.MenuItem26.Text = "第二册"
'
'MenuItem27
'
Me.MenuItem27.Index = 2
Me.MenuItem27.Text = "第三册"
'
'MenuItem28
'
Me.MenuItem28.Index = 3
Me.MenuItem28.Text = "第四册"
'
'MenuItem29
'
Me.MenuItem29.Index = 4
Me.MenuItem29.Text = "第五册"
'
'MenuItem30
'
Me.MenuItem30.Index = 5
Me.MenuItem30.Text = "第六册"
'
'MenuItem41
'
Me.MenuItem41.Index = 3
Me.MenuItem41.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.MenuItem42, Me.MenuItem43})
Me.MenuItem41.Text = "字体设置(&W)"
'
'MenuItem42
'
Me.MenuItem42.Index = 0
Me.MenuItem42.Text = "字体大小设置"
'
'MenuItem43
'
Me.MenuItem43.Index = 1
Me.MenuItem43.Text = "字体颜色设置"
'
'PictureBox1
'
Me.PictureBox1.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.PictureBox1.BackColor = System.Drawing.Color.Transparent
Me.PictureBox1.Location = New System.Drawing.Point(0, -8)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(624, 344)
Me.PictureBox1.TabIndex = 0
Me.PictureBox1.TabStop = False
'
'DataGrid1
'
Me.DataGrid1.AllowSorting = False
Me.DataGrid1.AlternatingBackColor = System.Drawing.Color.Lavender
Me.DataGrid1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.DataGrid1.BackColor = System.Drawing.Color.WhiteSmoke
Me.DataGrid1.BackgroundColor = System.Drawing.Color.LightGray
Me.DataGrid1.CaptionBackColor = System.Drawing.Color.LightSteelBlue
Me.DataGrid1.CaptionFont = New System.Drawing.Font("楷体_GB2312", 10.5!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.DataGrid1.CaptionForeColor = System.Drawing.Color.MidnightBlue
Me.DataGrid1.CaptionVisible = False
Me.DataGrid1.DataMember = ""
Me.DataGrid1.FlatMode = True
Me.DataGrid1.Font = New System.Drawing.Font("楷体_GB2312", 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.DataGrid1.ForeColor = System.Drawing.Color.MidnightBlue
Me.DataGrid1.GridLineColor = System.Drawing.Color.Gainsboro
Me.DataGrid1.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None
Me.DataGrid1.HeaderBackColor = System.Drawing.Color.MidnightBlue
Me.DataGrid1.HeaderFont = New System.Drawing.Font("宋体", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.DataGrid1.HeaderForeColor = System.Drawing.Color.WhiteSmoke
Me.DataGrid1.LinkColor = System.Drawing.Color.Teal
Me.DataGrid1.Location = New System.Drawing.Point(16, 32)
Me.DataGrid1.Name = "DataGrid1"
Me.DataGrid1.ParentRowsBackColor = System.Drawing.Color.Gainsboro
Me.DataGrid1.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
Me.DataGrid1.ReadOnly = True
Me.DataGrid1.SelectionBackColor = System.Drawing.Color.CadetBlue
Me.DataGrid1.SelectionForeColor = System.Drawing.Color.WhiteSmoke
Me.DataGrid1.Size = New System.Drawing.Size(600, 184)
Me.DataGrid1.TabIndex = 1
'
'Button1
'