質問編集履歴

1

コードの表示変更

2019/04/15 03:13

投稿

Com
Com

スコア30

test CHANGED
File without changes
test CHANGED
@@ -14,33 +14,39 @@
14
14
 
15
15
  作成した箇所抜粋になります。(VisualStudio2010Express)
16
16
 
17
+ ```
18
+
17
- 1 Private Sub DGVSend_EditingControlShowing(sender As Object, e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DGVSend.EditingControlShowing
19
+ Private Sub DGVSend_EditingControlShowing(sender As Object, e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DGVSend.EditingControlShowing
18
20
 
19
21
 
20
22
 
21
- 2  Dim _dgv As DataGridView = DirectCast(sender, DataGridView)
23
+ Dim _dgv As DataGridView = DirectCast(sender, DataGridView)
22
24
 
23
- 3  If TypeOf e.Control Is DataGridViewTextBoxEditingControl AndAlso _dgv.CurrentCell.ColumnIndex = 1 Then
25
+ If TypeOf e.Control Is DataGridViewTextBoxEditingControl AndAlso _dgv.CurrentCell.ColumnIndex = 1 Then
24
26
 
25
27
 
26
28
 
27
- 4 ' 編集のために表示されているコントロールを取得 AutoComにはあらかじめString()を設定済み
29
+ ' 編集のために表示されているコントロールを取得 AutoComにはあらかじめString()を設定済み
28
30
 
29
- 5 Dim _txt As DataGridViewTextBoxEditingControl = CType(e.Control, DataGridViewTextBoxEditingControl)
31
+ Dim _txt As DataGridViewTextBoxEditingControl = CType(e.Control, DataGridViewTextBoxEditingControl)
30
32
 
31
- 6  _txt.AutoCompleteMode = AutoCompleteMode.SuggestAppend
33
+ _txt.AutoCompleteMode = AutoCompleteMode.SuggestAppend
32
34
 
33
- 7 _txt.AutoCompleteSource = AutoCompleteSource.CustomSource
35
+ _txt.AutoCompleteSource = AutoCompleteSource.CustomSource
34
36
 
35
- 8 _txt.AutoCompleteCustomSource = AutoComp
37
+ _txt.AutoCompleteCustomSource = AutoComp
36
38
 
37
39
 
38
40
 
39
- 9 End If
41
+ End If
40
42
 
41
43
 
42
44
 
43
- 10 End Sub
45
+ End Sub
46
+
47
+ ```
48
+
49
+
44
50
 
45
51
 
46
52