MdiTabCtrl
MdiTabCtrl copied to clipboard
Autoscroll does not work
I tried the sample project and added a few controls and labels and set the autoscroll to true. When I resized the main window there were no scrollbar present. I might have missed something or this feature had not been implemented? Thank you for the great project.
Hi @geonautika kindly share screenshots to demonstrate what you are experiencing
Hi JacksiroKe,
After digging the code further I believed it was my fault. Your code is fine. I am sorry to cause you trouble. Thank you very much.
On Wed, Feb 10, 2021 at 11:24 AM JacksiroKe [email protected] wrote:
Hi @geonautika https://github.com/geonautika kindly share screenshots to demonstrate what you are experiencing
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JacksiroKe/MdiTabCtrl/issues/3#issuecomment-776877767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXDTPK46OZVYMGIBLSKMDS6K6MBANCNFSM4XMRAWWQ .
It's okay to be disturbed this way. At least I know someone is using my work somewhere. Cheers
Hi JacksiroKe,
I created a simple form with panels for header, body, and footer then tested using the sample project.
If I called the form last (showed as first tab) then it won't show the form until I clicked other tabs then go-back. Kind of refresh issue? public MainForm() { InitializeComponent();
NewEmptyTab();
NewEmptyTab();
NewBrowserTab();
NewTableTab(); // my new simple form with panels
}
But if I called the form in other ways the form won't show up at all, the tab was blank.
I tested this form because I am still puzzled with AutoScroll "not working" 😞 -- it works fine for simple form.
I am working on Windows 10 OS, VS 2019, tested on both .NET Frameworks 4 and 4.8.
Attached is my new form.
Thank you.
On Thu, Feb 11, 2021 at 12:45 AM JacksiroKe [email protected] wrote:
It's okay to be disturbed this way. At least I know someone is using my work somewhere. Cheers
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JacksiroKe/MdiTabCtrl/issues/3#issuecomment-777235375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXDTL5PVZT6GWSXBDDEATS6N4JPANCNFSM4XMRAWWQ .
namespace MdiTabCtrlSample
{
partial class TableForm
{
///
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(20, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(144, 24);
this.label1.TabIndex = 0;
this.label1.Text = "Purchase Order";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 14);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(180, 13);
this.label2.TabIndex = 0;
this.label2.Text = "copyright 2021 Microsoft Corporation";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(619, 14);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(180, 13);
this.label3.TabIndex = 1;
this.label3.Text = "copyright 2021 Microsoft Corporation";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 6);
this.textBox1.MinimumSize = new System.Drawing.Size(800, 0);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(800, 457);
this.textBox1.TabIndex = 0;
//
// panel1
//
this.panel1.BackColor = System.Drawing.SystemColors.InactiveCaption;
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(821, 42);
this.panel1.TabIndex = 2;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Khaki;
this.panel2.Controls.Add(this.label3);
this.panel2.Controls.Add(this.label2);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 527);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(821, 43);
this.panel2.TabIndex = 3;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Pink;
this.panel3.Controls.Add(this.textBox1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 42);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(821, 485);
this.panel3.TabIndex = 4;
//
// TableForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(821, 570);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "TableForm";
this.Text = "Purchase Order";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
}
} using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
namespace MdiTabCtrlSample { public partial class TableForm : Form { public TableForm() { InitializeComponent(); } } }