using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication7
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
           
        private void Form1_Load(object sender, EventArgs e)
        {
            Point pt = new Point(200,100);

            this.textBox1.Size = new Size(pt);  //改变控件大小!
            textBox1.Location = new Point(20, 20);//改变控件位置!

        }
       
    }
}

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3