fix log not scrolled to bottom when first shown

This commit is contained in:
clowwindy
2015-08-04 02:08:48 -07:00
parent e1a90da2a4
commit 7425e09ebc
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -95,6 +95,7 @@
this.Text = "Log Viewer";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LogForm_FormClosing);
this.Load += new System.EventHandler(this.LogForm_Load);
this.Shown += new System.EventHandler(this.LogForm_Shown);
this.ResumeLayout(false);
this.PerformLayout();
+5
View File
@@ -105,5 +105,10 @@ namespace Shadowsocks.View
{
this.Close();
}
private void LogForm_Shown(object sender, EventArgs e)
{
textBox1.ScrollToCaret();
}
}
}