日期:2014-05-17  浏览次数:20559 次

写一个小工具实现自动录入数据功能
首先在如下图截图中richtextbox 中输入数据

然后点击按钮要把相应的数据自动填到WindowsFormsApplication1.exe 中对应的框中如图

前面图一的 叶林自动填到name ,3自动选到class3, male 自动选择male按钮,4自动填到number文本框中,实现这个功能,然后点击button1 添加数据到下面richtextbox怎么 不知道怎么操作,求大神帮忙啊!!!

------解决方案--------------------

Form1设计器代码:

namespace WindowsFormsApplication1
{
    partial class Form1
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。