تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] مشكلة في combobox
#1
السلام عليكم 
قمت بملي combobox بالبيانات 
يظهر خطا ما الحل هدا كود مرفق 
كود :
Sub fill_combo_serves()
       dt.Clear()
       quary = "select *from table_game"
       da = New SqlDataAdapter(quary, Module1.con)
       da.Fill(dt)
       ComboBox1.DataSource = dt
       ComboBox1.DisplayMember = "g_name"
       ComboBox1.ValueMember = "id_g"
       ComboBox1.SelectedValue = -1
   End Sub
وهدا في زر 
كود :
Dim dt As New DataTable
       Try
           quary = "select * from table_game where id_g ='" & ComboBox1.SelectedValue & "' "
           da = New SqlDataAdapter(quary, Module1.con)
           da.Fill(dt)
           TextBox5.Text = dt.Rows(0)(3)

       Catch ex As Exception
           MsgBox(ex.Message)
       End Try

يظهر هدا خطا في صورة موضح


الملفات المرفقة صورة/صور
   
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
مشكلة في combobox - بواسطة ali_ahmed12 - 27-09-22, 10:21 PM
RE: مشكلة في combobox - بواسطة ali_ahmed12 - 27-09-22, 11:13 PM
RE: مشكلة في combobox - بواسطة a7med saba - 28-09-22, 01:17 AM
RE: مشكلة في combobox - بواسطة ali_ahmed12 - 28-09-22, 01:26 AM
RE: مشكلة في combobox - بواسطة Taha Okla - 28-09-22, 01:34 AM
RE: مشكلة في combobox - بواسطة ali_ahmed12 - 28-09-22, 01:48 AM
RE: مشكلة في combobox - بواسطة Taha Okla - 28-09-22, 06:45 AM
RE: مشكلة في combobox - بواسطة ali_ahmed12 - 28-09-22, 01:08 PM
RE: مشكلة في combobox - بواسطة ali_ahmed12 - 28-09-22, 04:05 PM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم