Add cancel buttons (which respond to escape) to a couple of dialogs

This commit is contained in:
baldurk
2016-08-29 16:12:58 +02:00
parent a2edad4f48
commit c05380cdf5
2 changed files with 3 additions and 0 deletions
@@ -298,6 +298,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = cancel;
this.ClientSize = new System.Drawing.Size(673, 474);
this.Controls.Add(tableLayoutPanel1);
this.MaximizeBox = false;
@@ -259,6 +259,7 @@
//
// cancel
//
cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
cancel.Location = new System.Drawing.Point(674, 448);
cancel.Margin = new System.Windows.Forms.Padding(3, 3, 15, 15);
cancel.Name = "cancel";
@@ -285,6 +286,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = cancel;
this.ClientSize = new System.Drawing.Size(764, 486);
this.Controls.Add(mainTable);
this.MaximizeBox = false;