Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyText As New TextBox()
MyText.Location = New Point(25, 25)
Me.Controls.Add(MyText)
End Sub
private void button1_Click(object sender, System.EventArgs e)
{
TextBox myText = new TextBox();
myText.Location = new Point(25,25);
this.Controls.Add (myText);
}
TextBox myText = new TextBox();
myText.set_Location(new Point(25, 25));
this.get_Controls().Add(myText);
private:
System::Void button1_Click(System::Object ^ sender,
System::EventArgs ^ e)
{
TextBox ^ myText = gcnew TextBox();
myText->Location = Point(25,25);
this->Controls->Add(myText);
}