本帖最后由 suenfai 于 2009-09-28 14:08:28 编辑

解决方案 »

  1. 可以重新建个form 再将源代码拷贝到新的立面就ok了
      

  2. 似乎你的 form.Designer.cs 受到了损坏。 建议先考虑下恢复,看看有没有版本可以rollback, 
    实在恢复不了,就重新布置画页面吧
      


  3. partial class frmBaseInfo
        {
            /// <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>
            /// 设计器支持所需的方法 - 不要
            /// 使用代码编辑器修改此方法的内容。
            /// </summary>
            private void InitializeComponent()
            {
                this.tabControl1 = new System.Windows.Forms.TabControl();
                this.tabDev = new System.Windows.Forms.TabPage();
                this.lvDev = new System.Windows.Forms.ListView();
                this.colDevCode = new System.Windows.Forms.ColumnHeader();
                this.colDevName = new System.Windows.Forms.ColumnHeader();
                this.btnDevDel = new System.Windows.Forms.Button();
                this.btnDevUpdate = new System.Windows.Forms.Button();
                this.btnDevAdd = new System.Windows.Forms.Button();
                this.tabUse = new System.Windows.Forms.TabPage();
                this.lvUse = new System.Windows.Forms.ListView();
                this.colUsePS = new System.Windows.Forms.ColumnHeader();
                this.colUseEPC = new System.Windows.Forms.ColumnHeader();
                this.btnDel = new System.Windows.Forms.Button();
                this.btnUseUpdate = new System.Windows.Forms.Button();
                this.btnUseAdd = new System.Windows.Forms.Button();
                this.tabLine = new System.Windows.Forms.TabPage();
                this.lvLine = new System.Windows.Forms.ListView();
                this.colLinePS = new System.Windows.Forms.ColumnHeader();
                this.colLineEPC = new System.Windows.Forms.ColumnHeader();
                this.btnLineDel = new System.Windows.Forms.Button();
                this.btnLineUpdate = new System.Windows.Forms.Button();
                this.btnLineAdd = new System.Windows.Forms.Button();
                this.tabGen = new System.Windows.Forms.TabPage();
                this.lvGen = new System.Windows.Forms.ListView();
                this.colGenPS = new System.Windows.Forms.ColumnHeader();
                this.colGenEPC = new System.Windows.Forms.ColumnHeader();
                this.btnGeneralDel = new System.Windows.Forms.Button();
                this.btnGeneralUpdate = new System.Windows.Forms.Button();
                this.btnGeneralAdd = new System.Windows.Forms.Button();
                this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
                this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
                this.tabControl1.SuspendLayout();
                this.tabDev.SuspendLayout();
                this.tabUse.SuspendLayout();
                this.tabLine.SuspendLayout();
                this.tabGen.SuspendLayout();
                this.SuspendLayout();
      


  4. // 
                // tabControl1
                // 
                this.tabControl1.Controls.Add(this.tabDev);
                this.tabControl1.Controls.Add(this.tabUse);
                this.tabControl1.Controls.Add(this.tabLine);
                this.tabControl1.Controls.Add(this.tabGen);
                this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
                this.tabControl1.Location = new System.Drawing.Point(0, 0);
                this.tabControl1.Name = "tabControl1";
                this.tabControl1.SelectedIndex = 0;
                this.tabControl1.Size = new System.Drawing.Size(238, 270);
                this.tabControl1.TabIndex = 0;
                // 
                // tabDev
                // 
                this.tabDev.Controls.Add(this.lvDev);
                this.tabDev.Controls.Add(this.btnDevDel);
                this.tabDev.Controls.Add(this.btnDevUpdate);
                this.tabDev.Controls.Add(this.btnDevAdd);
                this.tabDev.Location = new System.Drawing.Point(4, 25);
                this.tabDev.Name = "tabDev";
                this.tabDev.Size = new System.Drawing.Size(230, 241);
                this.tabDev.Text = "工位";
                // 
                // lvDev
                // 
                this.lvDev.Columns.Add(this.colDevCode);
                this.lvDev.Columns.Add(this.colDevName);
                this.lvDev.FullRowSelect = true;
                this.lvDev.Location = new System.Drawing.Point(0, 0);
                this.lvDev.Name = "lvDev";
                this.lvDev.Size = new System.Drawing.Size(230, 197);
                this.lvDev.TabIndex = 8;
                this.lvDev.View = System.Windows.Forms.View.Details;内容太多,后面的基本类似
      


  5.  private System.Windows.Forms.TabControl tabControl1;
            private System.Windows.Forms.TabPage tabDev;
            private System.Windows.Forms.TabPage tabUse;
            private System.Windows.Forms.TabPage tabLine;
            private System.Windows.Forms.TabPage tabGen;
            private System.Windows.Forms.Button btnDevDel;
            private System.Windows.Forms.Button btnDevUpdate;
            private System.Windows.Forms.Button btnDevAdd;
            private System.Windows.Forms.Button btnDel;
            private System.Windows.Forms.Button btnUseUpdate;
            private System.Windows.Forms.Button btnUseAdd;
            private System.Windows.Forms.Button btnLineDel;
            private System.Windows.Forms.Button btnLineUpdate;
            private System.Windows.Forms.Button btnLineAdd;
            private System.Windows.Forms.Button btnGeneralDel;
            private System.Windows.Forms.Button btnGeneralUpdate;
            private System.Windows.Forms.Button btnGeneralAdd;
            private System.Windows.Forms.ListView lvUse;
            private System.Windows.Forms.ColumnHeader colUseEPC;
            private System.Windows.Forms.ColumnHeader columnHeader3;
            private System.Windows.Forms.ColumnHeader columnHeader4;
            private System.Windows.Forms.ColumnHeader colUsePS;
            private System.Windows.Forms.ListView lvDev;
            private System.Windows.Forms.ColumnHeader colDevCode;
            private System.Windows.Forms.ColumnHeader colDevName;
            private System.Windows.Forms.ListView lvLine;
            private System.Windows.Forms.ColumnHeader colLinePS;
            private System.Windows.Forms.ColumnHeader colLineEPC;
            private System.Windows.Forms.ListView lvGen;
            private System.Windows.Forms.ColumnHeader colGenPS;
            private System.Windows.Forms.ColumnHeader colGenEPC;这个是定义部分,内容上不知道有没有什么不妥的地方,有没有可能是VS的问题?我用的是VS2005
      

  6. vs rollback 试过么?
    如果是自定义控件,有没有先行编译呢?
    别的机器上vs 新代码也是这样么?
      

  7. rollback没有试过,因为没有做详细的版本控制;我最郁闷的就是在别人的机器上好用,在我的机器上就是这个样,我重装过2005,不好用;但是装了个2008,就好用了,但是每次都要初始化工具箱,在用过几次以后就没有这种情况了!就怕指不定什么时候就会出现这种情况!
      

类似问题 »