亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? .net學習筆記.txt

?? .net常用經典源代碼。十分好用!不用客氣
?? TXT
字號:
.net學習筆記 
http://dev.21tx.com 2006年05月16日  

 
 
 
 


每日文章精萃 
.Net:Visual C#編程入門之C#的程序結構 Java:jdbc應用--數據庫連接全集 
ASP:ASP 中 DateDiff 函數詳解 PHP:PHP實現自動刷數和“灌水”機 
JSP:在JSP開發中模擬.NET WebForm(一) CGI:用Perl語言進行Socket編程之四 
VB:一個實現程序啟動窗口界面特效的程序 VC:OICQ登錄號碼清除器實現原理 


Form.DialogResult屬性 (表示當窗體用作對話框時該窗體的結果。) 

窗體的對話框結果是當窗體顯示為模式對話框時,從該窗體返回的值。如果該窗體顯示為對話框,用來自 DialogResult 枚舉的值設置此屬性可以為該窗體設置對話框結果的值、隱藏該模式對話框并將控件返回到調用窗體。此屬性通常由窗體上 Button 控件的 DialogResult 屬性設置。當用戶單擊 Button 控件時,分配給 Button 的 DialogResult 屬性的值將分配給該窗體的 DialogResult 屬性。

當窗體顯示為模式對話框時,單擊“關閉”按鈕(窗體右上角帶 X 的按鈕)將使窗體隱藏,并使 DialogResult 屬性設置為 DialogResult.Cancel。當用戶單擊對話框的“關閉”按鈕或設置 DialogResult 屬性的該值時,不自動調用 Close 方法。而是隱藏該窗體并可重新顯示該窗體,而不用創建該對話框的新實例。因為此行為,所以當應用程序不再需要該窗體時,必須調用該窗體的 Dispose 方法。

可以使用此屬性確定對話框是如何關閉的,以便正確處理在該對話框中執行的操作。

注意   通過在窗體的 Closing 事件的事件處理程序中設置 DialogResult 屬性,可以重寫用戶單擊“關閉”按鈕時分配給 DialogResult 屬性的值。
注意   如果 Form 顯示為無模式窗口,則 DialogResult 屬性返回的值可能不返回分配給該窗體的值,因為關閉該窗體時將自動釋放該窗體的資源。

[C#]

 1public void CreateMyForm()
2 ...{
3    // Create a new instance of the form.
4    Form form1 = new Form();
5    // Create two buttons to use as the accept and cancel buttons.
6    Button button1 = new Button ();
7    Button button2 = new Button ();
8   
9    // Set the text of button1 to "OK".
10    button1.Text = "OK";
11    // Set the position of the button on the form.
12    button1.Location = new Point (10, 10);
13    // Set the text of button2 to "Cancel".
14    button2.Text = "Cancel";
15    // Set the position of the button based on the location of button1.
16    button2.Location 
17       = new Point (button1.Left, button1.Height + button1.Top + 10);
18    // Make button1's dialog result OK.
19    button1.DialogResult = DialogResult.OK;
20    // Make button2's dialog result Cancel.
21    button2.DialogResult = DialogResult.Cancel;
22    // Set the caption bar text of the form.   
23    form1.Text = "My Dialog Box";
24 
25    // Define the border style of the form to a dialog box.
26    form1.FormBorderStyle = FormBorderStyle.FixedDialog;
27    // Set the accept button of the form to button1.
28    form1.AcceptButton = button1;
29    // Set the cancel button of the form to button2.
30    form1.CancelButton = button2;
31    // Set the start position of the form to the center of the screen.
32    form1.StartPosition = FormStartPosition.CenterScreen;
33    
34    // Add button1 to the form.
35    form1.Controls.Add(button1);
36    // Add button2 to the form.
37    form1.Controls.Add(button2);
38    
39    // Display the form as a modal dialog box.
40    form1.ShowDialog();
41 
42    // Determine if the OK button was clicked on the dialog box.
43    if (form1.DialogResult == DialogResult.OK)
44    ...{
45       // Display a message box indicating that the OK button was clicked.
46       MessageBox.Show("The OK button on the form was clicked.");
47       // Optional: Call the Dispose method when you are finished with the dialog box.
48       form1.Dispose();
49    }
50    else
51    ...{
52       // Display a message box indicating that the Cancel button was clicked.
53       MessageBox.Show("The Cancel button on the form was clicked.");
54       // Optional: Call the Dispose method when you are finished with the dialog box.
55       form1.Dispose();
56    }
57 }


 1[Visual Basic] 
2Public Sub CreateMyForm()Sub CreateMyForm()
3    ' Create a new instance of the form.
4    Dim form1 As New Form()
5    ' Create two buttons to use as the accept and cancel buttons.
6    Dim button1 As New Button()
7    Dim button2 As New Button()
8    
9    ' Set the text of button1 to "OK".
10    button1.Text = "OK"
11    ' Set the position of the button on the form.
12    button1.Location = New Point(10, 10)
13    ' Set the text of button2 to "Cancel".
14    button2.Text = "Cancel"
15    ' Set the position of the button based on the location of button1.
16    button2.Location = New Point(button1.Left, button1.Height + button1.Top + 10)
17    ' Make button1's dialog result OK.
18    button1.DialogResult = DialogResult.OK
19    ' Make button2's dialog result Cancel.
20    button2.DialogResult = DialogResult.Cancel
21    ' Set the caption bar text of the form.   
22    form1.Text = "My Dialog Box"
23    
24    ' Define the border style of the form to a dialog box.
25    form1.FormBorderStyle = FormBorderStyle.FixedDialog
26    ' Set the accept button of the form to button1.
27    form1.AcceptButton = button1
28    ' Set the cancel button of the form to button2.
29    form1.CancelButton = button2
30    ' Set the start position of the form to the center of the screen.
31    form1.StartPosition = FormStartPosition.CenterScreen
32    
33    ' Add button1 to the form.
34    form1.Controls.Add(button1)
35    ' Add button2 to the form.
36    form1.Controls.Add(button2)
37    
38    ' Display the form as a modal dialog box.
39    form1.ShowDialog()
40    
41    ' Determine if the OK button was clicked on the dialog box.
42    If form1.DialogResult = DialogResult.OK Then
43        ' Display a message box indicating that the OK button was clicked.
44        MessageBox.Show("The OK button on the form was clicked.")
45        ' Optional: Call the Dispose method when you are finished with the dialog box.
46        form1.Dispose
47    ' Display a message box indicating that the Cancel button was clicked.
48    Else
49        MessageBox.Show("The Cancel button on the form was clicked.")
50        ' Optional: Call the Dispose method when you are finished with the dialog box.
51        form1.Dispose
52    End If
53End Sub 'CreateMyForm


 


--------------------------------------------------------------------------------

ListView.Activation屬性 

Activation 屬性允許您指定用戶激活 ListView 控件中的項的方式。激活 ListView 中的項與只選擇項是不同的。當激活某個項時,通常會在 ItemActivate 事件的事件處理程序中執行一個操作。例如,當激活某個項時,您可能會打開一個文件或顯示一個允許用戶對項進行編輯的對話框。通常,項的激活是通過用戶對它進行雙擊來實現的。如果 Activation 屬性設置為 ItemActivation.OneClick,那么單擊該項一次即可將其激活。將 Activation 屬性設置為 ItemActivation.TwoClick 與標準的雙擊不同,這是因為兩次單擊之間的時間間隔可以是任意的。

注意   如果將 Activation 屬性設置為 ItemActivation.OneClick 或 ItemActivation.TwoClick,則不管 LabelEdit 屬性的值是什么,都不允許進行標簽編輯。 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品电影一区二区三区| 日韩欧美国产wwwww| 国产乱一区二区| 久久精品国产成人一区二区三区 | 日韩精品国产欧美| 一区二区三区在线观看国产| 亚洲视频中文字幕| 自拍av一区二区三区| 亚洲欧美区自拍先锋| 亚洲一区二区三区激情| 亚洲国产精品一区二区久久恐怖片| 最新国产成人在线观看| 亚洲一线二线三线视频| 日日夜夜免费精品| 国产精品99久久久久久宅男| 成人综合婷婷国产精品久久蜜臀| 成人国产精品视频| 色婷婷精品大视频在线蜜桃视频| 欧美午夜不卡在线观看免费| 欧美二区三区91| 久久―日本道色综合久久| 国产欧美一区二区三区鸳鸯浴| 中文字幕中文字幕中文字幕亚洲无线| 亚洲人成网站色在线观看| 夜夜嗨av一区二区三区网页 | 国产三级欧美三级日产三级99| 国产欧美一区在线| 亚洲一区日韩精品中文字幕| 裸体歌舞表演一区二区| 成人综合婷婷国产精品久久蜜臀| 色婷婷精品大视频在线蜜桃视频| 制服丝袜成人动漫| 国产精品蜜臀av| 亚洲高清免费在线| 成人免费看视频| 欧美电影在线免费观看| 中文字幕精品—区二区四季| 天堂影院一区二区| 不卡视频在线看| 日韩精品一区在线| 亚洲影院理伦片| 波多野结衣中文字幕一区二区三区| 91福利精品第一导航| 久久午夜国产精品| 图片区小说区国产精品视频| 高清成人免费视频| 7777精品伊人久久久大香线蕉的 | 精品国产人成亚洲区| 中文字幕综合网| 久久99精品国产麻豆婷婷| 在线一区二区三区四区五区| 久久亚洲综合色一区二区三区| 亚洲综合在线免费观看| 国产精品一区二区男女羞羞无遮挡| 99re66热这里只有精品3直播| 日韩欧美中文字幕公布| 亚洲综合在线五月| 色中色一区二区| 中文字幕精品三区| 国产精品综合网| 91麻豆精品国产| 亚洲国产精品一区二区尤物区| 成人丝袜18视频在线观看| 欧美一级日韩免费不卡| 一区二区三区欧美久久| 91女厕偷拍女厕偷拍高清| 中文一区二区在线观看| 国产在线不卡视频| 精品久久人人做人人爽| 久久精品久久久精品美女| 777午夜精品视频在线播放| 亚洲.国产.中文慕字在线| 一本久道中文字幕精品亚洲嫩| 欧美国产国产综合| 成人91在线观看| 国产拍揄自揄精品视频麻豆| 国产传媒一区在线| 中文字幕不卡在线播放| 91片黄在线观看| 亚洲私人影院在线观看| 99精品国产91久久久久久| 亚洲视频网在线直播| 91福利在线看| 日韩成人一级大片| 欧美精品一区二区久久婷婷| 国产精品1区二区.| 国产精品久久看| 91豆麻精品91久久久久久| 香蕉加勒比综合久久| 欧美一区二区在线看| 狠狠色丁香婷综合久久| 欧美国产精品劲爆| 欧美日韩一级二级三级| 日本欧美大码aⅴ在线播放| 久久亚洲免费视频| 99在线视频精品| 亚洲6080在线| 欧美成人欧美edvon| 粉嫩久久99精品久久久久久夜| 国产精品美日韩| 欧美三级视频在线观看| 日本欧美一区二区三区| 国产精品视频yy9299一区| 色综合久久精品| 九九久久精品视频| 一区二区三区四区视频精品免费 | 97久久人人超碰| 日韩电影一区二区三区四区| 久久亚洲一区二区三区四区| 色成年激情久久综合| 久久不见久久见中文字幕免费| 国产欧美日产一区| 91精品国产综合久久精品app| 国产麻豆精品视频| 亚洲高清免费视频| 国产精品美女久久福利网站| 777a∨成人精品桃花网| 成人手机电影网| 蜜臀av在线播放一区二区三区| 成人欧美一区二区三区小说| 91精品国产91久久久久久一区二区| yourporn久久国产精品| 秋霞电影一区二区| 亚洲猫色日本管| 国产精品免费人成网站| 欧美成人高清电影在线| 6080日韩午夜伦伦午夜伦| 91网页版在线| 国产精品99久久久| 久久成人羞羞网站| 五月天亚洲精品| 亚洲伦理在线精品| 中文字幕一区二区三区不卡在线| 日韩欧美亚洲另类制服综合在线| 欧洲av在线精品| 色综合中文字幕国产| 韩国精品久久久| 蜜桃一区二区三区四区| 三级一区在线视频先锋 | ww久久中文字幕| 欧美电影影音先锋| 欧美日本不卡视频| 欧美日韩免费观看一区三区| 91女厕偷拍女厕偷拍高清| 成人动漫视频在线| 国产成人精品免费一区二区| 国产一区二区0| 国产河南妇女毛片精品久久久 | 欧洲精品在线观看| 色天天综合久久久久综合片| 99精品一区二区| 成人一级片在线观看| 成人国产亚洲欧美成人综合网| 国产一区在线观看视频| 国产精品99久| 成人午夜在线视频| 粉嫩嫩av羞羞动漫久久久| 成人动漫一区二区三区| 91美女精品福利| 欧美视频完全免费看| 欧美日韩国产大片| 日韩欧美一二三| 国产色产综合产在线视频| 中文字幕在线不卡国产视频| 亚洲欧美偷拍另类a∨色屁股| 亚洲人成影院在线观看| 亚洲国产成人av网| 日本视频一区二区| 国产在线国偷精品产拍免费yy| 国产福利91精品一区| 不卡视频免费播放| 欧美绝品在线观看成人午夜影视| 678五月天丁香亚洲综合网| 欧美大片在线观看一区| 国产精品乱人伦| 亚洲第一在线综合网站| 久久99精品久久久久| 91在线视频网址| 51精品久久久久久久蜜臀| 久久影院午夜论| 亚洲精品日韩专区silk| 日本不卡视频在线观看| 国产成人午夜99999| 在线欧美一区二区| 欧美白人最猛性xxxxx69交| 国产精品理论片| 毛片av一区二区| 91久久奴性调教| 日韩手机在线导航| 亚洲欧美一区二区久久| 久久精品国产精品青草| 色婷婷综合激情| 国产日韩欧美高清| 丝袜亚洲另类丝袜在线| 成人黄色在线网站| 欧美精品tushy高清| 亚洲素人一区二区| 国产黄色精品网站| 日韩一级片网站| 午夜精品一区二区三区免费视频 |