?
=?ISO-8859-1?Q?=D8yvind_J=E6gtnes?=
I have a main form and a second form where i have set a ok button to
AcceptButton and a cancel button to CancelButton in the properties view.
I launch it with:
TheDialog dlg = new TheDialog();
dlg.ShowDialog();
Now it shows. I can click the cancel button or press escape and the form
closes with DialogResult.Cancel as result.
But if i click the Ok button or press enter, nothing happens
In the code generated by designer it sais:
this.AcceptButton = this.btnOk;
this.CancelButton = this.btnCancel;
Am i doing something wrong or does this look like a bug?
Im using Visual C# express 2005 and .net 2.0 beta things.
AcceptButton and a cancel button to CancelButton in the properties view.
I launch it with:
TheDialog dlg = new TheDialog();
dlg.ShowDialog();
Now it shows. I can click the cancel button or press escape and the form
closes with DialogResult.Cancel as result.
But if i click the Ok button or press enter, nothing happens
In the code generated by designer it sais:
this.AcceptButton = this.btnOk;
this.CancelButton = this.btnCancel;
Am i doing something wrong or does this look like a bug?
Im using Visual C# express 2005 and .net 2.0 beta things.