标题:在C#2005里如何设置Mdi子窗口菜单和工具栏
只看楼主
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
结帖率:100%
 问题点数:0 回复次数:19 
在C#2005里如何设置Mdi子窗口菜单和工具栏
我用C#2005做了个Mdi主窗口,有主菜单和主工具栏,然后又做了子窗口,通过主窗口的菜单命令来打开。子窗口也拥有菜单和工具栏,菜单在子窗口最上方,下面紧跟着工具栏,因为这样做可以比较方便的控制各子窗口在激活后只显示主窗口菜单、主工具栏和自己的子菜单、子工具栏。
    现在问题是子窗口打开后子菜单合并到主窗口菜单中后,子窗口最上方子菜单的位置上还是留下了一个光秃秃的菜单栏,菜单命令都合并到主窗口的菜单中了,而工具栏却没有合并到主窗口的工具栏中,还停留在子窗口中,上方是光秃秃的子菜单栏,很不好看。
    不知应该怎样解决?请大家帮忙,谢谢!!!
搜索更多相关主题的帖子: Mdi 菜单 窗口 工具 设置 
2008-03-29 20:42
梦心
Rank: 4
来 自:福建平和
等 级:贵宾
威 望:13
帖 子:1910
专家分:0
注 册:2007-5-11
得分:0 
楼主你发源码过来吧
我们看你描述都是晕晕的

我清高和我骄傲的倔强,在风中大声的唱:我不听,我不听~~做我自己最特别,呼呼~~啦啦~~~
我的博客园地址: [url]http://[/url]
2008-03-30 00:24
师妃暄
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:805
专家分:107
注 册:2006-3-1
得分:0 
发代码是王道~

有实力才会有魅力 实力来自坚持不懈的努力
2008-03-30 02:31
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
没有什么代码啊,都是用控件直接设计的
2008-03-30 14:13
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
怎么不好发图片啊,不然我可以发图片给大家看看
2008-03-30 15:22
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
2008-03-31 09:28
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
子窗口最大化后仍是这样
2008-03-31 09:29
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
子窗口InitializeComponent()事件代码:


namespace jiamei_c
{
    partial class Form_jinhuo
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private 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()
        {
             = new ();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
             resources = new (typeof(Form_jinhuo));
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.bhDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.cpmcDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ppDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ggDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.jhrqDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.jhslDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.jhdjDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.kcslDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.lrDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.xshDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.xgDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.jinhuobiaoBindingSource = new System.Windows.Forms.BindingSource();
            this.jiameiDataSet = new jiamei_c.JiameiDataSet();
            this.jinhuobiaoTableAdapter = new jiamei_c.JiameiDataSetTableAdapters.jinhuobiaoTableAdapter();
            this.maxidTableAdapter = new jiamei_c.JiameiDataSetTableAdapters.maxidTableAdapter();
            this.maxidbindingSource = new System.Windows.Forms.BindingSource();
            this.button1 = new System.Windows.Forms.Button();
            this.label1 = new System.Windows.Forms.Label();
            this.panel1 = new System.Windows.Forms.Panel();
            this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
            this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
            this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
            this.textBox3 = new System.Windows.Forms.TextBox();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.编辑ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
            this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
            (()(this.dataGridView1)).BeginInit();
            (()(this.jinhuobiaoBindingSource)).BeginInit();
            (()(this.jiameiDataSet)).BeginInit();
            (()(this.maxidbindingSource)).BeginInit();
            this.panel1.SuspendLayout();
            (()(this.numericUpDown2)).BeginInit();
            (()(this.numericUpDown1)).BeginInit();
            this.menuStrip1.SuspendLayout();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // dataGridView1
            //
            this.dataGridView1.AllowUserToAddRows = false;
            this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.dataGridView1.AutoGenerateColumns = false;
            this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.Sunken;
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
            this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.bhDataGridViewTextBoxColumn,
            this.cpmcDataGridViewTextBoxColumn,
            this.ppDataGridViewTextBoxColumn,
            this.ggDataGridViewTextBoxColumn,
            this.jhrqDataGridViewTextBoxColumn,
            this.jhslDataGridViewTextBoxColumn,
            this.jhdjDataGridViewTextBoxColumn,
            this.kcslDataGridViewTextBoxColumn,
            this.lrDataGridViewTextBoxColumn,
            this.xshDataGridViewTextBoxColumn,
            this.xgDataGridViewTextBoxColumn});
            this.dataGridView1.DataSource = this.jinhuobiaoBindingSource;
            this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
            this.dataGridView1.Location = new System.Drawing.Point(14, 62);
            this.dataGridView1.Name = "dataGridView1";
            this.dataGridView1.ReadOnly = true;
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
            this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle10;
            this.dataGridView1.RowHeadersWidth = 26;
            this.dataGridView1.RowTemplate.Height = 23;
            this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.dataGridView1.Size = new System.Drawing.Size(987, 459);
            this.dataGridView1.TabIndex = 0;
            //
            // bhDataGridViewTextBoxColumn
            //
            this.bhDataGridViewTextBoxColumn.DataPropertyName = "bh";
            this.bhDataGridViewTextBoxColumn.HeaderText = "进货编号";
            this.bhDataGridViewTextBoxColumn.Name = "bhDataGridViewTextBoxColumn";
            this.bhDataGridViewTextBoxColumn.ReadOnly = true;
            this.bhDataGridViewTextBoxColumn.Visible = false;
            //
            // cpmcDataGridViewTextBoxColumn
            //
            this.cpmcDataGridViewTextBoxColumn.DataPropertyName = "cpmc";
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.cpmcDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
            this.cpmcDataGridViewTextBoxColumn.HeaderText = "产品名称";
            this.cpmcDataGridViewTextBoxColumn.Name = "cpmcDataGridViewTextBoxColumn";
            this.cpmcDataGridViewTextBoxColumn.ReadOnly = true;
            //
            // ppDataGridViewTextBoxColumn
            //
            this.ppDataGridViewTextBoxColumn.DataPropertyName = "pp";
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.ppDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
            this.ppDataGridViewTextBoxColumn.HeaderText = "品牌";
            this.ppDataGridViewTextBoxColumn.Name = "ppDataGridViewTextBoxColumn";
            this.ppDataGridViewTextBoxColumn.ReadOnly = true;
            this.ppDataGridViewTextBoxColumn.Width = 70;
            //
            // ggDataGridViewTextBoxColumn
            //
            this.ggDataGridViewTextBoxColumn.DataPropertyName = "gg";
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.ggDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
            this.ggDataGridViewTextBoxColumn.HeaderText = "规格";
            this.ggDataGridViewTextBoxColumn.Name = "ggDataGridViewTextBoxColumn";
            this.ggDataGridViewTextBoxColumn.ReadOnly = true;
            this.ggDataGridViewTextBoxColumn.Width = 80;
            //
            // jhrqDataGridViewTextBoxColumn
            //
            this.jhrqDataGridViewTextBoxColumn.DataPropertyName = "jhrq";
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle5.Format = "yyyy.MM.dd";
            dataGridViewCellStyle5.NullValue = null;
            this.jhrqDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
            this.jhrqDataGridViewTextBoxColumn.HeaderText = "进货日期";
            this.jhrqDataGridViewTextBoxColumn.Name = "jhrqDataGridViewTextBoxColumn";
            this.jhrqDataGridViewTextBoxColumn.ReadOnly = true;
            this.jhrqDataGridViewTextBoxColumn.Width = 78;
            //
            // jhslDataGridViewTextBoxColumn
            //
            this.jhslDataGridViewTextBoxColumn.DataPropertyName = "jhsl";
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            dataGridViewCellStyle6.Format = "N0";
            dataGridViewCellStyle6.NullValue = null;
            this.jhslDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6;
            this.jhslDataGridViewTextBoxColumn.HeaderText = "进货数量";
            this.jhslDataGridViewTextBoxColumn.Name = "jhslDataGridViewTextBoxColumn";
            this.jhslDataGridViewTextBoxColumn.ReadOnly = true;
            this.jhslDataGridViewTextBoxColumn.Width = 78;
            //
            // jhdjDataGridViewTextBoxColumn
            //
            this.jhdjDataGridViewTextBoxColumn.DataPropertyName = "jhdj";
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            dataGridViewCellStyle7.Format = "N2";
            dataGridViewCellStyle7.NullValue = null;
            this.jhdjDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle7;
            this.jhdjDataGridViewTextBoxColumn.HeaderText = "进货单价";
            this.jhdjDataGridViewTextBoxColumn.Name = "jhdjDataGridViewTextBoxColumn";
            this.jhdjDataGridViewTextBoxColumn.ReadOnly = true;
            this.jhdjDataGridViewTextBoxColumn.Width = 78;
            //
            // kcslDataGridViewTextBoxColumn
            //
            this.kcslDataGridViewTextBoxColumn.DataPropertyName = "kcsl";
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            dataGridViewCellStyle8.BackColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Red;
            dataGridViewCellStyle8.Format = "N0";
            dataGridViewCellStyle8.NullValue = null;
            this.kcslDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8;
            this.kcslDataGridViewTextBoxColumn.HeaderText = "库存数量";
            this.kcslDataGridViewTextBoxColumn.Name = "kcslDataGridViewTextBoxColumn";
            this.kcslDataGridViewTextBoxColumn.ReadOnly = true;
            this.kcslDataGridViewTextBoxColumn.Width = 78;
            //
            // lrDataGridViewTextBoxColumn
            //
            this.lrDataGridViewTextBoxColumn.DataPropertyName = "lr";
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            dataGridViewCellStyle9.BackColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle9.ForeColor = System.Drawing.Color.Red;
            dataGridViewCellStyle9.Format = "N2";
            dataGridViewCellStyle9.NullValue = null;
            this.lrDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9;
            this.lrDataGridViewTextBoxColumn.HeaderText = "利润";
            this.lrDataGridViewTextBoxColumn.Name = "lrDataGridViewTextBoxColumn";
            this.lrDataGridViewTextBoxColumn.ReadOnly = true;
            this.lrDataGridViewTextBoxColumn.Width = 80;
            //
            // xshDataGridViewTextBoxColumn
            //
            this.xshDataGridViewTextBoxColumn.DataPropertyName = "xsh";
            this.xshDataGridViewTextBoxColumn.HeaderText = "显示列";
            this.xshDataGridViewTextBoxColumn.Name = "xshDataGridViewTextBoxColumn";
            this.xshDataGridViewTextBoxColumn.ReadOnly = true;
            this.xshDataGridViewTextBoxColumn.Visible = false;
            //
            // xgDataGridViewTextBoxColumn
            //
            this.xgDataGridViewTextBoxColumn.DataPropertyName = "xg";
            this.xgDataGridViewTextBoxColumn.HeaderText = "修改列";
            this.xgDataGridViewTextBoxColumn.Name = "xgDataGridViewTextBoxColumn";
            this.xgDataGridViewTextBoxColumn.ReadOnly = true;
            this.xgDataGridViewTextBoxColumn.Visible = false;
            //
            // jinhuobiaoBindingSource
            //
            this.jinhuobiaoBindingSource.DataMember = "jinhuobiao";
            this.jinhuobiaoBindingSource.DataSource = this.jiameiDataSet;
            //
            // jiameiDataSet
            //
            this.jiameiDataSet.DataSetName = "JiameiDataSet";
            this.jiameiDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            //
            // jinhuobiaoTableAdapter
            //
            this.jinhuobiaoTableAdapter.ClearBeforeFill = true;
            //
            // maxidTableAdapter
            //
            this.maxidTableAdapter.ClearBeforeFill = true;
            //
            // maxidbindingSource
            //
            this.maxidbindingSource.DataMember = "maxid";
            this.maxidbindingSource.DataSource = this.jiameiDataSet;
            //
            // button1
            //
            this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.button1.Location = new System.Drawing.Point(98, 704);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 1;
            this.button1.Text = "添加";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(18, 18);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(53, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "产品名称";
            //
            // panel1
            //
            this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panel1.Controls.Add(this.numericUpDown2);
            this.panel1.Controls.Add(this.numericUpDown1);
            this.panel1.Controls.Add(this.dateTimePicker1);
            this.panel1.Controls.Add(this.textBox3);
            this.panel1.Controls.Add(this.textBox2);
            this.panel1.Controls.Add(this.textBox1);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.label6);
            this.panel1.Controls.Add(this.label5);
            this.panel1.Controls.Add(this.label4);
            this.panel1.Controls.Add(this.label3);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Location = new System.Drawing.Point(14, 549);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(987, 135);
            this.panel1.TabIndex = 3;
            //
            // numericUpDown2
            //
            this.numericUpDown2.DecimalPlaces = 2;
            this.numericUpDown2.Increment = new decimal(new int[] {
            1,
            0,
            0,
            131072});
            this.numericUpDown2.Location = new System.Drawing.Point(889, 14);
            this.numericUpDown2.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            131072});
            this.numericUpDown2.Name = "numericUpDown2";
            this.numericUpDown2.Size = new System.Drawing.Size(77, 21);
            this.numericUpDown2.TabIndex = 7;
            this.numericUpDown2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.numericUpDown2.Value = new decimal(new int[] {
            1,
            0,
            0,
            131072});
            //
            // numericUpDown1
            //
            this.numericUpDown1.Location = new System.Drawing.Point(754, 14);
            this.numericUpDown1.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.numericUpDown1.Name = "numericUpDown1";
            this.numericUpDown1.Size = new System.Drawing.Size(55, 21);
            this.numericUpDown1.TabIndex = 7;
            this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.numericUpDown1.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
            //
            // dateTimePicker1
            //
            this.dateTimePicker1.CustomFormat = "yyyy.MM.dd";
            this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
            this.dateTimePicker1.Location = new System.Drawing.Point(584, 14);
            this.dateTimePicker1.Name = "dateTimePicker1";
            this.dateTimePicker1.Size = new System.Drawing.Size(88, 21);
            this.dateTimePicker1.TabIndex = 4;
            //
            // textBox3
            //
            this.textBox3.Location = new System.Drawing.Point(401, 14);
            this.textBox3.Name = "textBox3";
            this.textBox3.Size = new System.Drawing.Size(104, 21);
            this.textBox3.TabIndex = 3;
            //
            // textBox2
            //
            this.textBox2.Location = new System.Drawing.Point(252, 14);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(94, 21);
            this.textBox2.TabIndex = 2;
            //
            // textBox1
            //
            this.textBox1.Location = new System.Drawing.Point(74, 14);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(122, 21);
            this.textBox1.TabIndex = 1;
            //
            // label6
            //
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(833, 18);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(53, 12);
            this.label6.TabIndex = 0;
            this.label6.Text = "进货单价";
            //
            // label5
            //
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(699, 18);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(53, 12);
            this.label5.TabIndex = 0;
            this.label5.Text = "进货数量";
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(525, 18);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(53, 12);
            this.label4.TabIndex = 0;
            this.label4.Text = "进货日期";
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(369, 18);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(29, 12);
            this.label3.TabIndex = 0;
            this.label3.Text = "规格";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(220, 18);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(29, 12);
            this.label2.TabIndex = 0;
            this.label2.Text = "品牌";
            //
            // label7
            //
            this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.label7.AutoSize = true;
            this.label7.ForeColor = System.Drawing.Color.Blue;
            this.label7.Location = new System.Drawing.Point(12, 534);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(77, 12);
            this.label7.TabIndex = 5;
            this.label7.Text = "进货产品信息";
            //
            // menuStrip1
            //
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.编辑ToolStripMenuItem});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(1016, 24);
            this.menuStrip1.TabIndex = 6;
            this.menuStrip1.Text = "menuStrip1";
            //
            // 编辑ToolStripMenuItem
            //
            this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem";
            this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(41, 20);
            this.编辑ToolStripMenuItem.Text = "编辑";
            //
            // toolStrip1
            //
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripButton1,
            this.toolStripButton2,
            this.toolStripButton3,
            this.toolStripButton4});
            this.toolStrip1.Location = new System.Drawing.Point(0, 24);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(1016, 25);
            this.toolStrip1.TabIndex = 7;
            this.toolStrip1.Text = "toolStrip1";
            //
            // toolStripButton1
            //
            this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
            this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton1.Name = "toolStripButton1";
            this.toolStripButton1.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton1.Text = "toolStripButton1";
            //
            // toolStripButton2
            //
            this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
            this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton2.Name = "toolStripButton2";
            this.toolStripButton2.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton2.Text = "toolStripButton2";
            //
            // toolStripButton3
            //
            this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
            this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton3.Name = "toolStripButton3";
            this.toolStripButton3.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton3.Text = "toolStripButton3";
            //
            // toolStripButton4
            //
            this.toolStripButton4.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
            this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.toolStripButton4.Name = "toolStripButton4";
            this.toolStripButton4.Size = new System.Drawing.Size(23, 22);
            this.toolStripButton4.Text = "toolStripButton4";
            //
            // Form_jinhuo
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1016, 741);
            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.dataGridView1);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.menuStrip1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "Form_jinhuo";
            this.Text = "录入进货信息";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Load += new System.EventHandler(this.Form_jinhuo_Load);
            (()(this.dataGridView1)).EndInit();
            (()(this.jinhuobiaoBindingSource)).EndInit();
            (()(this.jiameiDataSet)).EndInit();
            (()(this.maxidbindingSource)).EndInit();
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            (()(this.numericUpDown2)).EndInit();
            (()(this.numericUpDown1)).EndInit();
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.DataGridView dataGridView1;
        private JiameiDataSet jiameiDataSet;
        private System.Windows.Forms.BindingSource jinhuobiaoBindingSource;
        private jiamei_c.JiameiDataSetTableAdapters.jinhuobiaoTableAdapter jinhuobiaoTableAdapter;
        private jiamei_c.JiameiDataSetTableAdapters.maxidTableAdapter maxidTableAdapter;
        private System.Windows.Forms.BindingSource maxidbindingSource;
        private System.Windows.Forms.DataGridViewTextBoxColumn bhDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn cpmcDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn ppDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn ggDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn jhrqDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn jhslDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn jhdjDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn kcslDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn lrDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn xshDataGridViewTextBoxColumn;
        private System.Windows.Forms.DataGridViewTextBoxColumn xgDataGridViewTextBoxColumn;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.TextBox textBox3;
        private System.Windows.Forms.TextBox textBox2;
        private System.Windows.Forms.DateTimePicker dateTimePicker1;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.NumericUpDown numericUpDown2;
        private System.Windows.Forms.NumericUpDown numericUpDown1;
        private System.Windows.Forms.MenuStrip menuStrip1;
        private System.Windows.Forms.ToolStripMenuItem 编辑ToolStripMenuItem;
        private System.Windows.Forms.ToolStrip toolStrip1;
        private System.Windows.Forms.ToolStripButton toolStripButton1;
        private System.Windows.Forms.ToolStripButton toolStripButton2;
        private System.Windows.Forms.ToolStripButton toolStripButton3;
        private System.Windows.Forms.ToolStripButton toolStripButton4;
    }
}
2008-03-31 09:30
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
主窗口和子窗口的菜单、工具栏都是直接添加控件,以上代码是系统自动生成的
请帮着看看,能解决吗?谢谢了
2008-03-31 09:32
jstzcl007
Rank: 1
等 级:新手上路
帖 子:102
专家分:0
注 册:2008-3-29
得分:0 
有人知道吗
2008-03-31 15:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-206064-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.031396 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved