加入標籤Label1,Caption設定為“你好,請輸入你的姓名”加入文字框Text1,用來輸入姓名的加入標籤Label2,按照你的要求設定字型屬性,autosize屬性設成true分別加入確定,繼續,結束按鈕以下是程式碼:Private Sub Form_Load() Me.結束.Visible = False Me.繼續.Visible = False Label2.Visible = FalseEnd SubPrivate Sub 繼續_Click() Me.結束.Visible = False Me.繼續.Visible = False Label2.Visible = False Me.確定.Visible = True Label1.Visible = True Text1.Visible = TrueEnd SubPrivate Sub 結束_Click() EndEnd SubPrivate Sub 確定_Click() Label2.Caption = Text1.Text & "同學,你好,祝你學好vb程式設計" Me.結束.Visible = True Me.繼續.Visible = True Label2.Visible = True Label1.Visible = False Text1.Visible = False Me.確定.Visible = FalseEnd Sub
加入標籤Label1,Caption設定為“你好,請輸入你的姓名”加入文字框Text1,用來輸入姓名的加入標籤Label2,按照你的要求設定字型屬性,autosize屬性設成true分別加入確定,繼續,結束按鈕以下是程式碼:Private Sub Form_Load() Me.結束.Visible = False Me.繼續.Visible = False Label2.Visible = FalseEnd SubPrivate Sub 繼續_Click() Me.結束.Visible = False Me.繼續.Visible = False Label2.Visible = False Me.確定.Visible = True Label1.Visible = True Text1.Visible = TrueEnd SubPrivate Sub 結束_Click() EndEnd SubPrivate Sub 確定_Click() Label2.Caption = Text1.Text & "同學,你好,祝你學好vb程式設計" Me.結束.Visible = True Me.繼續.Visible = True Label2.Visible = True Label1.Visible = False Text1.Visible = False Me.確定.Visible = FalseEnd Sub