G
Guest
Heya
I am having trouble using a Splitter to divide a Frame horizontally. For some reason the top panel automatically fills the entire Frame area, while the splitter lets me move the bottom panel up over the top panel. What I expect to occur is to have both panels resize to fit the available space when I adjust the Splitter. I attempted to implement this code myself only to have very weird behavior (which mostlikely had to do with the order the events were firing). Here's the layout for the frame
this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom
this.splitter1.Location = new System.Drawing.Point(0, 246)
this.splitter1.Name = "splitter1"
this.splitter1.Size = new System.Drawing.Size(736, 3)
this.splitter1.TabIndex = 2
this.splitter1.TabStop = false
this.splitter1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitter1_SplitterMoved)
this.dgOrders.DataMember = ""
this.dgOrders.Dock = System.Windows.Forms.DockStyle.Fill
this.dgOrders.HeaderForeColor = System.Drawing.SystemColors.ControlText
this.dgOrders.ImeMode = System.Windows.Forms.ImeMode.NoControl
this.dgOrders.Location = new System.Drawing.Point(0, 58)
this.dgOrders.Name = "dgOrders"
this.dgOrders.ReadOnly = true
this.dgOrders.Size = new System.Drawing.Size(736, 343)
this.dgOrders.TabIndex = 0
this.dgOrders.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {this.dataGridTableStyle1})
this.axWebBrowser.ContainingControl = this
this.axWebBrowser.Dock = System.Windows.Forms.DockStyle.Fill
this.axWebBrowser.Enabled = true
this.axWebBrowser.Location = new System.Drawing.Point(0, 0)
this.axWebBrowser.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser.OcxState")))
this.axWebBrowser.Size = new System.Drawing.Size(736, 152)
this.axWebBrowser.TabIndex = 2
I'd appreciate any help anyone can give me.
~~K
I am having trouble using a Splitter to divide a Frame horizontally. For some reason the top panel automatically fills the entire Frame area, while the splitter lets me move the bottom panel up over the top panel. What I expect to occur is to have both panels resize to fit the available space when I adjust the Splitter. I attempted to implement this code myself only to have very weird behavior (which mostlikely had to do with the order the events were firing). Here's the layout for the frame
this.splitter1.Dock = System.Windows.Forms.DockStyle.Bottom
this.splitter1.Location = new System.Drawing.Point(0, 246)
this.splitter1.Name = "splitter1"
this.splitter1.Size = new System.Drawing.Size(736, 3)
this.splitter1.TabIndex = 2
this.splitter1.TabStop = false
this.splitter1.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.splitter1_SplitterMoved)
this.dgOrders.DataMember = ""
this.dgOrders.Dock = System.Windows.Forms.DockStyle.Fill
this.dgOrders.HeaderForeColor = System.Drawing.SystemColors.ControlText
this.dgOrders.ImeMode = System.Windows.Forms.ImeMode.NoControl
this.dgOrders.Location = new System.Drawing.Point(0, 58)
this.dgOrders.Name = "dgOrders"
this.dgOrders.ReadOnly = true
this.dgOrders.Size = new System.Drawing.Size(736, 343)
this.dgOrders.TabIndex = 0
this.dgOrders.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {this.dataGridTableStyle1})
this.axWebBrowser.ContainingControl = this
this.axWebBrowser.Dock = System.Windows.Forms.DockStyle.Fill
this.axWebBrowser.Enabled = true
this.axWebBrowser.Location = new System.Drawing.Point(0, 0)
this.axWebBrowser.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser.OcxState")))
this.axWebBrowser.Size = new System.Drawing.Size(736, 152)
this.axWebBrowser.TabIndex = 2
I'd appreciate any help anyone can give me.
~~K