The following example creates a new form and uses the DefaultControl property to return a Control object representing the default command button.
次の例では、新しいフォームを作成し、 DefaultControl プロパティを使用して既定のコマンド ボタンを表す Control オブジェクトを取得します。
For a form that supports irreversible operations, such as deletions, it is a good idea to make the Cancel button the default command button. To do this, set both the Default property and the Cancel property to Yes.
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.