|
Hi,
I am using this form in my app and want to set this code:
If qd.DialogResult = Windows.Forms.DialogResult.OK Then
If
Not
[String].IsNullOrWhiteSpace(qd.Expression)
Then
_featureLayer.SelectByAttribute(qd.Expression)
but the result is always Cancel anyhow I click on the OK or Cancel Button
Now i saw in the sorce the DialogResult is not set for the OK Button.
// btnCancel
//
resources.ApplyResources(this.btnCancel, "btnCancel");
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Name = "btnCancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// cmdOk
//
resources.ApplyResources(this.cmdOk, "cmdOk");
this.cmdOk.Name = "cmdOk";
this.cmdOk.UseVisualStyleBackColor = true;
this.cmdOk.Click += new System.EventHandler(this.cmdOk_Click);
//
|