Search results for query: *

  1. M

    Question Recording Data to a List

    well after the last line of your code "ListBox1.Items.Add(TextBox2.Text)" in your last reply put this code dim LC,minNumberOfRecords as Integer minNumberOfRecords = 10 'this way at least you need 10 records to stop the program LC = ListBox1.Items.Count If LC > minNumberOfRecords -1 Then If...
  2. M

    Question Recording Data to a List

    use this method make a global variable StartedRecoring as Boolean = False put the code of your timer in this if clause If StartedRecording Then 'the timer code End If and in TextBox2_TextChanged put this code If TextBox2.Text <> 0 Then StartedRecording = True this way once the value of...
  3. M

    Question Recording Data to a List

    well simply just add a listbox for example the name is ListBox1 in timer you should put this code ListBox1.Items.Add(TextBox1.Text) and for the time that the timer start to record the values i don't know what you have in your mind but you can simply put two buttons one Start and one Stop in...
  4. M

    DB connection - should i close it?

    Thanks a lot for the answer!
  5. M

    Question Recording Data to a List

    i don't quite get your question but what i understand is that you need a list and a timer with the interval you want and the timer add the value of TextBox2 to the list! am i right?:S
  6. M

    DB connection - should i close it?

    Hello everyone I had a little question. When i open a connection in vb.net should i close it after using it and open it again when i need it or let it be open the whole time until the program is terminated? Please answer with reason thanks
Back
Top