dialogresult中文翻譯,dialogresult是什么意思,dialogresult發(fā)音、用法及例句
- 內容導航:
- 1、dialogresult
- 2、C#中dialogresult中的用法
1、dialogresult
dialogresult發(fā)音
英: 美:
dialogresult中文意思翻譯
常見(jiàn)釋義:
對話(huà)
dialogresult雙語(yǔ)使用場(chǎng)景
1、The following code example creates a Button, sets its DialogResult property to OK, and adds it to a Form.───下面的代碼示例創(chuàng )建一個(gè)Button,將其DialogResult屬性設置為OK,并將其添加到Form。
2、At design time, you can set the DialogResult property for all of the Button controls on a dialog box.───在設計時(shí),可以設置對話(huà)框上所有Button控件的DialogResult屬性。
3、Navigate to the event handler or method that you want to set the DialogResult property for.───定位到要為其設置DialogResult屬性的事件處理程序或方法。
4、If the user pressed the Action key on the device or tapped ok, the dialog returns DialogResult. OK.───如果用戶(hù)按設備上的Action鍵或點(diǎn)擊OK,該對話(huà)框返回DialogResult.OK。
5、The form's DialogResult property is then set to the DialogResult of the button when the button is clicked.───然后,該窗體的DialogResult屬性將設置為該按鈕被單擊時(shí)的DialogResult。
6、Implementation is added to the DialogResult property and the NotifyDefault and PerformClick methods.───將實(shí)現添加到DialogResult屬性以及NotifyDefault和PerformClick方法。
dialogresult相似詞語(yǔ)短語(yǔ)
1、dialogtech logo───dialog tech徽標
2、dialogtech careers───dialogtech職業(yè)生涯
3、dialogistic meaning───對話(huà)意義
4、dialogism definition───對話(huà)定義
5、dialogically synonym───對話(huà)同義詞
6、dialogical method───對話(huà)法
7、dialogues concerning natural religion───自然宗教對話(huà)
8、inner dialogue───內心對話(huà)
9、dialogist journal───對話(huà)日記
10、make dialogues───進(jìn)行對話(huà)
2、C#中dialogresult中的用法
樓上的說(shuō)的挺仔細了,這是一個(gè)例子,運行下就知道了.
string
message
=
"You
did
not
enter
a
server
name.
Cancel
this
operation?";
string
caption
=
"No
Server
Name
Specified";
MessageBoxButtons
buttons
=
MessageBoxButtons.YesNo;
DialogResult
result;
//顯示MessageBox.
result
=
MessageBox.Show(this,
message,
caption,
buttons);
//如果點(diǎn)擊的是"YES"按鈕,將form關(guān)閉.
if(result
==
DialogResult.Yes)
{
//
Closes
the
parent
form.
this.Close();
}
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。