Esc will close (cancel) after capture form

This commit is contained in:
Jaex 2015-12-03 23:02:20 +02:00
parent 0a265c7871
commit 969cd564ac
2 changed files with 11 additions and 6 deletions

View file

@ -38,9 +38,9 @@ private void InitializeComponent()
this.tcTasks = new System.Windows.Forms.TabControl();
this.tpAfterCapture = new System.Windows.Forms.TabPage();
this.tpBeforeUpload = new System.Windows.Forms.TabPage();
this.ucBeforeUpload = new ShareX.BeforeUploadControl();
this.lblFileName = new System.Windows.Forms.Label();
this.txtFileName = new System.Windows.Forms.TextBox();
this.ucBeforeUpload = new ShareX.BeforeUploadControl();
this.tcTasks.SuspendLayout();
this.tpAfterCapture.SuspendLayout();
this.tpBeforeUpload.SuspendLayout();
@ -48,6 +48,7 @@ private void InitializeComponent()
//
// lvAfterCaptureTasks
//
this.lvAfterCaptureTasks.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.lvAfterCaptureTasks.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.chAfterCapture});
resources.ApplyResources(this.lvAfterCaptureTasks, "lvAfterCaptureTasks");
@ -121,11 +122,6 @@ private void InitializeComponent()
this.tpBeforeUpload.Name = "tpBeforeUpload";
this.tpBeforeUpload.UseVisualStyleBackColor = true;
//
// ucBeforeUpload
//
resources.ApplyResources(this.ucBeforeUpload, "ucBeforeUpload");
this.ucBeforeUpload.Name = "ucBeforeUpload";
//
// lblFileName
//
resources.ApplyResources(this.lblFileName, "lblFileName");
@ -136,11 +132,17 @@ private void InitializeComponent()
resources.ApplyResources(this.txtFileName, "txtFileName");
this.txtFileName.Name = "txtFileName";
//
// ucBeforeUpload
//
resources.ApplyResources(this.ucBeforeUpload, "ucBeforeUpload");
this.ucBeforeUpload.Name = "ucBeforeUpload";
//
// AfterCaptureForm
//
this.AcceptButton = this.btnContinue;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.Controls.Add(this.txtFileName);
this.Controls.Add(this.lblFileName);
this.Controls.Add(this.tcTasks);

View file

@ -435,6 +435,9 @@
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>784, 406</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>800, 445</value>
</data>