VB.net Hel [autocomplete]

IDG

Well-known member
  • Aug 3, 2012
    14,166
    3,146
    113
    34
    වාහන ගොඩේ
    VB.net Help [autocomplete]

    මට පොඩ්ඩක් උදව්කරනවාද මේකයි වැඩේ
    vb.net වලින් windows form එකක් හදාගන්න ඹනේ මෙන්න මේ විදිහට
    textbox එකක් තියෙනවා ඒකට data type කරනකොට auto complete වෙන්න
    autocomplete words ටික ms access වලින් read කරලා ගන්න
    මම net එකේන් එහේමෙහේ ගිහින් හොයාගත්ත ඒත් ඒකේ autocomplete වෙන්නේ 1වෙනි word එක විතරයි

    මේතියෙන්නේ කරපු විදිහ උඩ තියෙන එකත් බලාගෙන කරා
    create a text box
    and change its properties menu
    autocomplete mode to suggest append
    autocomplete source to custom source

    after that form load code =
    HTML:
    Dim con1 As New OleDbConnection
            con1.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\work\recent.accdb"
            con1.Open()
            MsgBox("suggestions are open")
     Dim dt As New DataTable
            Dim ds As New DataSet
            ds.Tables.Add(dt)
            Dim da As New OleDbDataAdapter("select * from recent", con1)
            da.Fill(dt)
            Dim r As DataRow
            TextBox2.AutoCompleteCustomSource.Clear()
    
            For Each r In dt.Rows
                sugg.Add(r.Item(0).ToString)
                
    
            Next
    
            TextBox2.AutoCompleteCustomSource = sugg
            con1.Close()
    මේකෙන් 1st word එකට විතරයි වැඩ කරන්නේ දන්න කෙනේක් පොඩ්ඩක් කියලා දෙනවද දිගටම type කරනකොට හැම වචනේටම suggestion පෙන්නන විදිහ

    දන්නේ නැත්තම් bump එකක් දාගෙන යන්න දවසක ඹයාලාටත් වැදගත් ‍වෙයි programmer කේනේක් නම්


     
    Last edited:

    hirashgeff

    Well-known member
  • Jan 16, 2007
    22,148
    25,856
    113
    28
    ලොවෙත් නැති තැනක
    මට පොඩ්ඩක් උදව්කරනවාද මේකයි වැඩේ
    vb.net වලින් windows form එකක් හදාගන්න ඹනේ මෙන්න මේ විදිහට
    textbox එකක් තියෙනවා ඒකට data type කරනකොට auto complete වෙන්න
    autocomplete words ටික ms access වලින් read කරලා ගන්න
    මම net එකේන් එහේමෙහේ ගිහින් හොයාගත්ත ඒත් ඒකේ autocomplete වෙන්නේ 1වෙනි word එක විතරයි

    මේතියෙන්නේ කරපු විදිහ උඩ තියෙන එකත් බලාගෙන කරා
    create a text box
    and change its properties menu
    autocomplete mode to suggest append
    autocomplete source to custom source

    after that form load code =
    HTML:
    Dim con1 As New OleDbConnection
            con1.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\work\recent.accdb"
            con1.Open()
            MsgBox("suggestions are open")
     Dim dt As New DataTable
            Dim ds As New DataSet
            ds.Tables.Add(dt)
            Dim da As New OleDbDataAdapter("select * from recent", con1)
            da.Fill(dt)
            Dim r As DataRow
            TextBox2.AutoCompleteCustomSource.Clear()
    
            For Each r In dt.Rows
                sugg.Add(r.Item(0).ToString)
                
    
            Next
    
            TextBox2.AutoCompleteCustomSource = sugg
            con1.Close()
    මේකෙන් 1st word එකට විතරයි වැඩ කරන්නේ දන්න කෙනේක් පොඩ්ඩක් කියලා දෙනවද දිගටම type කරනකොට හැම වචනේටම suggestion පෙන්නන විදිහ

    දන්නේ නැත්තම් bump එකක් දාගෙන යන්න දවසක ඹයාලාටත් වැදගත් ‍වෙයි programmer කේනේක් නම්


    මචන් මම උපදෙසක් දෙන්නම් . අලුත් ප්‍රොජෙක්ට් වින්ෆොර්ම් වලින් කරන්න ඒපා ඒක දැන් පරණ ටෙක්නොලොජි එකක්. WPF ඉගෙන ගනින් මචන්. මාස දෙකක් කට්ට කැව නම් උඹට වින්ෆොර්ම්ස් වලින් කරන්න බැරි දේවල් හුඟක් දේවල් WPF වලින් කරන්න පුළුවන්
     
    • Like
    Reactions: IDG

    IDG

    Well-known member
  • Aug 3, 2012
    14,166
    3,146
    113
    34
    වාහන ගොඩේ
    න්නේ නැත්තම් bump එකක් දාගෙන යන්න දවසක ඹයාලාටත් වැදගත් ‍වෙයි programmer කේනේක් නම්