タイトル : Re^3: xmlファイル作成 投稿日 : 2005/01/21(Fri) 16:37 投稿者 : aki
[OSのVer]:Windows [VBのVer]:VB.NET いや、コンボボックスとテキストボックスが交互に配置されていないと 思い通りの順番にならないと・・・。 Dim comboBoxi As ComboBox Dim textBoxi As TextBox Dim wCtrl As Control Dim i As Integer For i = 0 to 15 For Each wCtrl In Me.Controls If wCtrl.Name = "comboBox" & i.ToString Then comboBoxi = DirectCast(wCtrl, ComboBox) ElseIf wCtrl.Name = "textBox" & i.ToString Then textBoxi = DirectCast(wCtrl, TextBox) ・ ・ ・ ・ End If Next Next i っと書くぐらいなら普通に地道に順番に(笑)書いていったほうが 早いような気がします・・・。(^_^;) |