投稿日 | : 2006/07/05(Wed) 18:41 |
投稿者 | : ダンボ |
Eメール | : |
URL | : |
タイトル | : Re: ツールボックスを使わずプログラムでテキストボックス等を表示させるには?? |
VB6.0なら、表示だけなら、
Dim N_Button As CommandButton, N_Text As TextBox
Set N_Button = Form1.Controls.Add("VB.CommandButton", "N_Button")
N_Button.Visible = True
N_Button.Move 10, 10, 1200, 600
N_Button.Caption = "Test(&T)"
N_Button.Enabled = True
Set N_Text = Form1.Controls.Add("VB.TextBox", "N_Text")
N_Text.Visible = True
N_Text.Move 10, 800, 2000, 600
N_Text.Text = "Test"
N_Text.Enabled = True
#目的が分からないので質問どおりに答えましたが、本当はVisible=Falseの
コマンドボタンやテキストボックスををあらかじめ用意しておいて、
必要になったらVisible=Trueにすればいいんじゃないの?