Is there anyway to save what I type? Ex. Im online and I start searching things, is there anyway to go back and see a list or something of all of the things I typed?

3 Years
Discussion Span
Last Post by Eternal Newbie

I discribe brief idea and you'll finished it. This solution lack a Database to store the data, so you might need to create one:

'The public value
    Public Dt As DataTable = GetTable()
    Function GetTable() As DataTable
        Dim table As New DataTable
        table.Columns.Add("Text", GetType(String))
        table.Columns.Add("Date", GetType(DateTime))
        Return table
    End Function
'In form which contains textbox
    Private Sub TextBox1_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Validated
        If TextBox1.Text <> "" Then
            Dim Dr As DataRow = Dt.NewRow
            Dr.Item(0) = TextBox1.Text
            Dr.Item(1) = Now.ToString()
            Dr = Nothing
        End If
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    End Sub
'FormDgv1: form contains datgridview to show history:
    Private Sub FormDgv1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.DataGridView1.DataSource = Dt
        Me.DataGridView1.Sort(DataGridView1.SelectedColumns("Date"), System.ComponentModel.ListSortDirection.Descending)
    End Sub
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.