06-01-22, 11:59 AM
السلام عليكم ورحمة الله وبركاتة
كل عام و الجميع بخير
لدى إستفسار بخصوص الكومبوبوكس و هو كالتالى
أقوم بأضافة كومبوكس بعدد الصفوف الناتجة من الداتا جريد فيو
مثال
For s As Integer = 0 To 5
Dim cb As New ComboBox
Dim oldX As Integer
Dim oldY As Integer
For Each ctrl In Panel2.Controls
If TypeOf ctrl Is ComboBox Then
oldX = ctrl.location.X
oldY = ctrl.location.y + 33
End If
Next
cb.Location = New Point(oldX, oldY)
Panel2.Controls.Add(cb)
Next
Dim cb As New ComboBox
Dim oldX As Integer
Dim oldY As Integer
For Each ctrl In Panel2.Controls
If TypeOf ctrl Is ComboBox Then
oldX = ctrl.location.X
oldY = ctrl.location.y + 33
End If
Next
cb.Location = New Point(oldX, oldY)
Panel2.Controls.Add(cb)
Next
---------------------------------------
اريد التعامل على كل كومبوبوكس منهم على حدا
بحيث اني مثلا فى حدث selectedvaluechanged اسوى شئ
و هل يوجد طريقة أسهل من هذا ؟