reza_comp
یک شنبه 01 شهریور 1388, 12:14 عصر
من باذ کد زیر یه textbox در زمان اجرای برنامه به فرم اضافه میکنم
private void button1_Click(object sender, System.EventArgs e)
TextBox myText = new TextBox();
myText.Location = new Point(25,25);
this.Controls.Add (myText);
ولی همونطور که میبینید این textbox در یه مکان خاص قرار میگیره و نمیشه حرکتش داد.
چطوری میتونم کاری بکنم که کاربر بتونه این textbox رو در زمان اجرا حرکت بده و در مکان مورنظرش قرار بده؟؟؟
private void button1_Click(object sender, System.EventArgs e)
TextBox myText = new TextBox();
myText.Location = new Point(25,25);
this.Controls.Add (myText);
ولی همونطور که میبینید این textbox در یه مکان خاص قرار میگیره و نمیشه حرکتش داد.
چطوری میتونم کاری بکنم که کاربر بتونه این textbox رو در زمان اجرا حرکت بده و در مکان مورنظرش قرار بده؟؟؟