Skip to main content

TEXTBOX AUTO SERACH VB.NET | TECHBYMATI



     TEXTBOX AUTO SERACH VB.NET | TECHBYMATI

    Private Sub FillSearchResult()

            Dim AutoComp As New AutoCompleteStringCollection()

            Dim dsSerch As New DataSet

            ' Dim ConStr As String = "user id=sa;password=aeiouy;Initial Catalog=......."

            ' Dim sqlCon As New SqlClient.SqlConnection(ConStr)

            'sqlCon.Open()

            ''Dim Str As String = "select empname from tbl_Employee"

            '' Dim SqlCom As New SqlClient.SqlCommand(Str, cnn)

            ''Dim sqlAdap As New SqlClient.SqlDataAdapter(cnn)

            ''sqlAdap.Fill(dsSerch)

            checkConnection()

            Dim ad As New SqlDataAdapter("SELECT ownername FROM vachileduesG Where ownername like '" & txt_ownername.Text & "%'", cnn)

            Dim dt As New DataTable

            ad.Fill(dsSerch)

            For i As Integer = 0 To dsSerch.Tables(0).Rows.Count - 1

                AutoComp.Add(dsSerch.Tables(0).Rows(i)(0).ToString())

            Next


            txt_ownername.AutoCompleteMode = AutoCompleteMode.Suggest

            txt_ownername.AutoCompleteSource = AutoCompleteSource.CustomSource

            txt_ownername.AutoCompleteCustomSource = AutoComp

        End Sub

     

    Comments

    Popular posts from this blog

    Marg ERP 9+ Shortcut Keys

    Contents Marg ERP 9+ Shortcut Keys           F2        - Sale Bill      Alt+A     - Counter Sale      Alt+P     - Purc.Challan      Alt+S     - Sale Challan      Alt+Ins   - Cash Challan      Ctrl+T/Z  - Copy Bill      Ctrl+F3/F3- Sale Modify      Ctrl+O    - Import/Export      Ctrl+K    - Stock Less      Ctrl+D    - Stock Add      Ctrl+R    - Cash/Cr/Setup      Ctrl+P    - Load PO/PenChall      Ctrl+F9   - Bill-Adjustments      Ctrl+V    - QRID Or...

    Vb.Net and MS-Access database Conection | TechbyMati

    Contents Vb.Net and MS-Access database Conection Open connection to password protected Access database: "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\App1\Your_Database_Name.mdb; Jet OLEDB:Database Password=Your_Password" connStr = "Provider=Microsoft.Jet.OLEDB.4.0; " +             "Data Source=G:\\Backup\\Kashif\\xyzDB.mdb";             qryStr = "select content,websiteID  from content";             dbConn = new OleDbConnection(connStr); Examples:      SQL:  "server=tonydev;database=northwind;uid=tony;pwd=hrmmm"               "server=tonydev;database=northwind;trusted_connection=yes"      OLE: "Provider=Microsoft.Jet.OLEDB.4.0; Data source=C:\tony.mdb"     Public Function FetchData(ByVal FileName As String) As DataSet         'Define the connectors   ...

    Marg ERP 9+ Software Download: The Ultimate Guide to GST Billing & Accounting for SMEs (2026)

    Marg ERP 9+ Software Download: The Ultimate Guide to GST Billing & Accounting for SMEs If you run a small or medium-sized enterprise (SME), you already know that managing daily operations can feel like a high-wire balancing act. Between tracking inventory, ensuring accurate billing, managing customer relationships, and staying compliant with ever-changing GST regulations, there is very little room for error. Manual accounting and outdated spreadsheet methods no longer cut it in today’s fast-paced digital economy. Enter Marg ERP 9+ , one of India's most trusted and widely used business management platforms. Whether you are a retail shop owner, a massive FMCG distributor, or a pharmacy handling thousands of complex SKUs, finding the right software is critical to scaling your business. In this comprehensive, SEO-friendly guide, we will dive deep into what Marg Software is, explore its inspiring history, break down its top-tier features, and show you exactly...