填充:SelectCommand.Connection属性尚未在winforms设计时初始化

时间:2014-08-01 20:18:38

标签: c# winforms ms-access

我有一个几乎为空的表单,它只有一个名为Panel_Pedidos的自定义控件 代码只有InitializeComponent函数的默认构造函数 设计文件是这个

        private void InitializeComponent()
        {
            this.panel_Pedidos1 = new testWinControl.Panel_Pedidos();
            this.SuspendLayout();
            // 
            // panel_Pedidos1
            // 
            this.panel_Pedidos1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel_Pedidos1.Location = new System.Drawing.Point(0, 0);
            this.panel_Pedidos1.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
            this.panel_Pedidos1.Name = "panel_Pedidos1";
            this.panel_Pedidos1.Size = new System.Drawing.Size(1005, 609);
            this.panel_Pedidos1.TabIndex = 0;
            // 
            // Pantalla_Pedidos
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 20F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1005, 609);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Controls.Add(this.panel_Pedidos1);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Margin = new System.Windows.Forms.Padding(5);
            this.Name = "Pantalla_Pedidos";
            this.ShowIcon = false;
            this.ResumeLayout(false);

        }

        #endregion

        private Panel_Pedidos panel_Pedidos1;

Panel_Pedidos在设计时有任何失败,它会正常打开哪里可能是问题?

0 个答案:

没有答案