一聚教程网:一个值得你收藏的教程网站

热门教程

一个简单的代码生成“器”

时间:2022-07-02 18:06:47 编辑:袖梨 来源:一聚教程网

'//一个简单的代码生成“器”
'//在比较大的数据库操作时,对字段操作有好多变量、属性、函数的类似的重复性的大量代码
'//如果一个个来重写,确是令人烦躁的事,因此自己弄了一个小程序作这部分工作。
Public Class FrmPropertyCode
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
Initialize()
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 VariableTextBox As System.Windows.Forms.TextBox
Friend WithEvents CodeTextBox As System.Windows.Forms.TextBox
Friend WithEvents PropertyComboBox As System.Windows.Forms.ComboBox
Friend WithEvents PropertyTextBox As System.Windows.Forms.TextBox
Friend WithEvents SavePropertyButton As System.Windows.Forms.Button
Friend WithEvents BuildCodeButton As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Private Sub InitializeComponent()

热门栏目