Vote count:
0
I have this Base Form:
Dessigner:
namespace frmMain
{
partial class frmMainSearch
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.pnlSearch = new System.Windows.Forms.Panel();
this.btnNew = new CustomButton.CustomButton();
this.btnSearch = new CustomButton.CustomButton();
this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape();
this.dtgResults = new System.Windows.Forms.DataGridView();
this.content.SuspendLayout();
this.pnlSearch.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dtgResults)).BeginInit();
this.SuspendLayout();
this.label1.Size = new System.Drawing.Size(3841, 25);
this.content.Controls.Add(this.dtgResults);
this.content.Controls.Add(this.pnlSearch);
this.content.Size = new System.Drawing.Size(595, 384);
this.pnlSearch.Controls.Add(this.btnNew);
this.pnlSearch.Controls.Add(this.btnSearch);
this.pnlSearch.Controls.Add(shapeContainer1);
this.pnlSearch.Dock = System.Windows.Forms.DockStyle.Top;
this.pnlSearch.Location = new System.Drawing.Point(0, 0);
this.pnlSearch.Name = "pnlSearch";
this.pnlSearch.Size = new System.Drawing.Size(595, 144);
this.pnlSearch.TabIndex = 0;
this.btnNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnNew.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(231)))));
this.btnNew.FlatAppearance.BorderColor = System.Drawing.Color.DimGray;
this.btnNew.FlatAppearance.MouseDownBackColor = System.Drawing.Color.LightGray;
this.btnNew.FlatAppearance.MouseOverBackColor = System.Drawing.Color.LightGray;
this.btnNew.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNew.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnNew.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
this.btnNew.Location = new System.Drawing.Point(11, 107);
this.btnNew.Name = "btnNew";
this.btnNew.Size = new System.Drawing.Size(75, 31);
this.btnNew.TabIndex = 1;
this.btnNew.Text = "Nuevo";
this.btnNew.UseVisualStyleBackColor = false;
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(231)))));
this.btnSearch.FlatAppearance.BorderColor = System.Drawing.Color.DimGray;
this.btnSearch.FlatAppearance.MouseDownBackColor = System.Drawing.Color.LightGray;
this.btnSearch.FlatAppearance.MouseOverBackColor = System.Drawing.Color.LightGray;
this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnSearch.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
this.btnSearch.Location = new System.Drawing.Point(509, 107);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(75, 31);
this.btnSearch.TabIndex = 0;
this.btnSearch.Text = "Buscar";
this.btnSearch.UseVisualStyleBackColor = false;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
this.shapeContainer1.Location = new System.Drawing.Point(0, 0);
this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0);
this.shapeContainer1.Name = "shapeContainer1";
this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
this.lineShape1});
this.shapeContainer1.Size = new System.Drawing.Size(595, 144);
this.shapeContainer1.TabIndex = 2;
this.shapeContainer1.TabStop = false;
this.lineShape1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lineShape1.Name = "lineShape1";
this.lineShape1.X1 = 0;
this.lineShape1.X2 = 595;
this.lineShape1.Y1 = 143;
this.lineShape1.Y2 = 143;
this.dtgResults.AllowUserToAddRows = false;
this.dtgResults.AllowUserToDeleteRows = false;
this.dtgResults.AllowUserToOrderColumns = true;
this.dtgResults.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.dtgResults.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(240)))), ((int)(((byte)(241)))));
this.dtgResults.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dtgResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dtgResults.Dock = System.Windows.Forms.DockStyle.Fill;
this.dtgResults.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dtgResults.Location = new System.Drawing.Point(0, 144);
this.dtgResults.MultiSelect = false;
this.dtgResults.Name = "dtgResults";
this.dtgResults.RowHeadersVisible = false;
this.dtgResults.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dtgResults.Size = new System.Drawing.Size(595, 240);
this.dtgResults.TabIndex = 1;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(597, 410);
this.Name = "frmMainSearch";
this.Text = "frmMainSearch";
this.content.ResumeLayout(false);
this.pnlSearch.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dtgResults)).EndInit();
this.ResumeLayout(false);
}
protected CustomButton.CustomButton btnNew;
protected CustomButton.CustomButton btnSearch;
protected System.Windows.Forms.DataGridView dtgResults;
private Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1;
private Microsoft.VisualBasic.PowerPacks.LineShape lineShape1;
protected System.Windows.Forms.Panel pnlSearch;
}
}
I created a inherits second form. When I try to drag a control(label, button...) with Visual UI and Visual Studio won't let me.
If I write manually the control in the Dessigner, Visual Studio don't say anything.
Please help me!
Thanks!
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire