VB.net Help [autocomplete]
මට පොඩ්ඩක් උදව්කරනවාද මේකයි වැඩේ
මට පොඩ්ඩක් උදව්කරනවාද මේකයි වැඩේ
vb.net වලින් windows form එකක් හදාගන්න ඹනේ මෙන්න මේ විදිහට
textbox එකක් තියෙනවා ඒකට data type කරනකොට auto complete වෙන්න
autocomplete words ටික ms access වලින් read කරලා ගන්න
මම net එකේන් එහේමෙහේ ගිහින් හොයාගත්ත ඒත් ඒකේ autocomplete වෙන්නේ 1වෙනි word එක විතරයි
මේතියෙන්නේ කරපු විදිහ උඩ තියෙන එකත් බලාගෙන කරා
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 =
මේකෙන් 1st word එකට විතරයි වැඩ කරන්නේ දන්න කෙනේක් පොඩ්ඩක් කියලා දෙනවද දිගටම type කරනකොට හැම වචනේටම suggestion පෙන්නන විදිහ
දන්නේ නැත්තම් bump එකක් දාගෙන යන්න දවසක ඹයාලාටත් වැදගත් වෙයි programmer කේනේක් නම්
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()
දන්නේ නැත්තම් bump එකක් දාගෙන යන්න දවසක ඹයාලාටත් වැදගත් වෙයි programmer කේනේක් නම්
Last edited: