以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- VB的代码怎么写成foxtable (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=92758) |
-- 作者:chenjiu6202 -- 发布时间:2016/11/11 20:22:00 -- VB的代码怎么写成foxtable Public Class FaceDemo Inherits System.Windows.Forms.Form Private Sub InitializeComponent() Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(Gettype(FaceDemo)) Me.btnEnroll = New Button() -------------------------这句报错,未定义类型 Me.btnEnroll.Location = New Point(253, 172) Me.btnEnroll.Name = "btnEnroll" Me.btnEnroll.Size = New Size(75, 23) Me.btnEnroll.TabIndex = 2 Me.btnEnroll.Text = "Register" Me.btnEnroll.UseVisualStyleBackColor = True AddHandler Me.btnEnroll.Click, AddressOf Me.btnEnroll_Click MyBase.Controls.Add(Me.btnEnroll) End Sub End Class 请问老师这句该怎么改啊! |
-- 作者:chenjiu6202 -- 发布时间:2016/11/11 20:25:00 -- 少写一句 Private btnEnroll As WinForm.Button
|