DialogResult の値がセットされた時点でフォームは非表示になるため Close() を呼び出す必要は無い
参照: http://msdn.microsoft.com/ja-jp/library/system.windows.forms.form.dialogresult.aspx
//
// ButtonClose
//
- this.ButtonClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.ButtonClose, "ButtonClose");
+ this.ButtonClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.ButtonClose.Name = "ButtonClose";
this.ButtonClose.UseVisualStyleBackColor = true;
- this.ButtonClose.Click += new System.EventHandler(this.ButtonClose_Click);
//
// ContextMenuUserPicture
//
this.TextBoxDescription.ScrollBars = ScrollBars.Vertical;
}
- private void ButtonClose_Click(object sender, EventArgs e)
- {
- this.Close();
- }
-
private async void LinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var linkLabel = (LinkLabel)sender;