تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
سؤال بعد اذن اخواتي الافاضل ارجو مشاركتي
#17
(24-10-19, 08:03 PM)AbdoDabak كتب : طيب عطيني الكود اللي تستخدمه لعرض ال ايدي من التيكست الى الليست

عفوا من التيكست الى الداتا
ده كود لعرض ال ايدي من التيكست الى الليست
كود :
 Dim kk As String = ""
           If TextBox1.Text <> Nothing Then
               Dim ListLine As New List(Of String)(TextBox1.Lines)
               For Each itm As String In ListLine
                   ListBox1.Items.Add(itm)
               Next
           End If
و ده كود عرض الداتا 
كود :
 Dim ii As Integer = DataGridView1.Rows.Count - 1
           If Val(TextBox1.Text) = 100004441516054 Then


               DataGridView1.Rows.Add()
               DataGridView1.Rows(ii).Cells(0).Value = Val(TextBox1.Text)
               DataGridView1.Rows(ii).Cells(1).Value = "AhMed El-Qon"
               DataGridView1.Rows(ii).Cells(2).Value = "+201010759698"
               DataGridView1.Rows(ii).Cells(3).Value = "NON"
               DataGridView1.Rows(ii).Cells(4).Value = "‏‎Sidi Salim, Kafr Ash Shaykh, Egypt‎‏"
               TextBox1.Select()
           ElseIf Val(TextBox1.Text) = 100008040420441 Then
               DataGridView1.Rows.Add()
               DataGridView1.Rows(ii).Cells(0).Value = Val(TextBox1.Text)
               DataGridView1.Rows(ii).Cells(1).Value = "Hossam Ibrahim"
               DataGridView1.Rows(ii).Cells(2).Value = "+201202179000"
               DataGridView1.Rows(ii).Cells(3).Value = "hhxx61@yahoo.com"
               DataGridView1.Rows(ii).Cells(4).Value = " ‏الأقصر‏"
               TextBox1.Select()
           ElseIf TextBox1.Text = 100004441516054 & vbCrLf & 100008040420441 Then


               DataGridView1.Rows.Add()
               DataGridView1.Rows(ii).Cells(0).Value = Val(TextBox1.Text)
               DataGridView1.Rows(ii).Cells(1).Value = "AhMed El-Qon"
               DataGridView1.Rows(ii).Cells(2).Value = "+201010759698"
               DataGridView1.Rows(ii).Cells(3).Value = "NON"
               DataGridView1.Rows(ii).Cells(4).Value = "‏‎Sidi Salim, Kafr Ash Shaykh, Egypt‎‏"
               DataGridView1.Rows.Add()
               DataGridView1.Rows(ii + 1).Cells(0).Value = Val(TextBox1.Text)
               DataGridView1.Rows(ii + 1).Cells(1).Value = "Hossam Ibrahim"
               DataGridView1.Rows(ii + 1).Cells(2).Value = "+201202179000"
               DataGridView1.Rows(ii + 1).Cells(3).Value = "hhxx61@yahoo.com"
               DataGridView1.Rows(ii + 1).Cells(4).Value = " ‏الأقصر‏"
               TextBox1.Select()
           ElseIf TextBox1.Text = 100008040420441 & vbCrLf & 100004441516054 Then


               DataGridView1.Rows.Add()
               DataGridView1.Rows(ii).Cells(0).Value = Val(TextBox1.Text)
               DataGridView1.Rows(ii).Cells(1).Value = "AhMed El-Qon"
               DataGridView1.Rows(ii).Cells(2).Value = "+201010759698"
               DataGridView1.Rows(ii).Cells(3).Value = "NON"
               DataGridView1.Rows(ii).Cells(4).Value = "‏‎Sidi Salim, Kafr Ash Shaykh, Egypt‎‏"
               DataGridView1.Rows.Add()
               DataGridView1.Rows(ii + 1).Cells(0).Value = Val(TextBox1.Text)
               DataGridView1.Rows(ii + 1).Cells(1).Value = "Hossam Ibrahim"
               DataGridView1.Rows(ii + 1).Cells(2).Value = "+201202179000"
               DataGridView1.Rows(ii + 1).Cells(3).Value = "hhxx61@yahoo.com"
               DataGridView1.Rows(ii + 1).Cells(4).Value = " ‏الأقصر‏"
               TextBox1.Select()
           
           Else
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
RE: سؤال بعد اذن اخواتي الافاضل ارجو مشاركتي - بواسطة اليوم السابع - 24-10-19, 08:11 PM

المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  سؤال عن الاسمبلي و النيم سبيس justforit 0 104 07-12-25, 12:28 AM
آخر رد: justforit
  فائدة بخصوص التعامل مع علامات التنصيص مع {سؤال} justforit 4 277 02-11-25, 11:19 PM
آخر رد: justforit
  [نقاش] سؤال MetoDas 2 1,490 20-04-25, 10:21 PM
آخر رد: Kamil
  [سؤال] سؤال ترددت قبل نشرة:طابعة الباركود لماذا تطبع أكثر من ليبل فارغ قبل السليم dr.programming 1 513 20-04-25, 09:26 PM
آخر رد: Kamil
  ارجو تعديل الكود بواستطة الاجراء المخزن new_programer 3 677 03-04-25, 02:44 PM
آخر رد: princelovelorn
  سؤال لو سمحتم احبتى فى الله خالد كامل1 4 809 09-02-25, 12:02 AM
آخر رد: princelovelorn
  ارجو تعديل الكود جلب البيانات عن طريق اجراء مخزن - مرفق مثال new_programer 0 620 05-02-25, 01:51 AM
آخر رد: new_programer
  سؤال واستفسار خالد كامل1 1 404 04-02-25, 09:31 PM
آخر رد: aliday03
  سؤال فى تقرير كريستال خالد كامل1 0 396 04-02-25, 05:50 AM
آخر رد: خالد كامل1
Question [VB.NET] هناك سؤال يهم كل مبرمج الماذا برنامجك يظهر على بعض الشاشات اكثر دقه بشكل مصغر ومشوه Microformt 0 448 01-02-25, 03:48 PM
آخر رد: Microformt

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


يقوم بقرائة الموضوع: