Click here to Skip to main content
15,892,298 members
Articles / Programming Languages / Visual Basic

Searching, Sorting, and Multitasking Comparisons

Rate me:
Please Sign up or sign in to vote.
4.19/5 (16 votes)
31 May 20049 min read 96K   1.9K   49  
Visually displays various searching and sorting techniques using different multitasking techniques.
'-------------------------------------------------
' Searching, Sorting, and Multitasking Comparisons
' 
' Written By Jeffrey B. Firestone
' Jeffrey B. Firestone Company
' jfirestone@jbfc.com
' 
' May 29, 2004
' 
' You may redistribute this control in binary and modified binary form as you please.  You may
' use this control in commercial applications without need for external credit royalty free.
' 
' However, you are restricted from releasing the source code in any modified fashion
' whatsoever.
' 
' I MAKE NO PROMISES OR WARRANTIES ON THIS CODE/CONTROL.  IF ANY DAMAGE OR PROBLEMS HAPPEN FROM ITS USE
' THEN YOU ARE RESPONSIBLE.

Option Strict On
Imports System.Data.OleDb

Public Class ShowData

    Inherits System.Windows.Forms.Form

    Public dt As New DataTable

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents dg As System.Windows.Forms.DataGrid
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.dg = New System.Windows.Forms.DataGrid
        CType(Me.dg, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'dg
        '
        Me.dg.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
                    Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.dg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.dg.DataMember = ""
        Me.dg.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.dg.Location = New System.Drawing.Point(0, 0)
        Me.dg.Name = "dg"
        Me.dg.Size = New System.Drawing.Size(392, 500)
        Me.dg.TabIndex = 12
        '
        'ShowData
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(392, 498)
        Me.Controls.Add(Me.dg)
        Me.Cursor = System.Windows.Forms.Cursors.Default
        Me.MinimumSize = New System.Drawing.Size(400, 380)
        Me.Name = "ShowData"
        Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show
        Me.Text = "VB Database Test App"
        CType(Me.dg, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
I am a Houston, Texas based software developer and consultant specializing in .NET and database system development.

I work with SQL Server, Oracle, MySQL, along with VB6, C#, and VB.NET.

I have provided consulting services to companies in the Houston area and beyond for over twenty years.

I can be reached via jfirestone@jbfco.com

Comments and Discussions