Search results for query: *

  • Users: tpra21
  • Content: Threads
  • Order by date
  1. tpra21

    An Example Application with Extensive Database Functionality

    I have coded many smaller applications using VB.Net 2003 / 05, but only a couple that use databases; one to be exact. I was wondering if anyone has a link to or an example of a VB.Net application that has 2 - 10 forms and uses a database. Basically, I am an RPG ILE/CL IBM programmer (I know...
  2. tpra21

    Updating items in a listbox

    Is it possible to update items in a list box on a form (without using a datagrid or database field)? I have two forms. One is the main form and stands in the background. The other will pop up in front of it and allows a user to add a daily reminder. Once done, the popup window is closed and...
  3. tpra21

    e.HasMorePages Error in my Code

    I have the following code (I apologize for the lack of indenting, the pasting always takes away the formatting): Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim dailyTransFile As String...
  4. tpra21

    IComparable Problem

    I have the following code: Imports System.io PublicClass Form1 Inherits System.Windows.Forms.Form Public records(9999) As DailyTransaction Public namePath AsString = "C:\names.txt" Public nameStream AsNew FileStream(namePath, FileMode.Open, FileAccess.Read) Public nameReader AsNew...
  5. tpra21

    Using Relative Path with Registry Key

    I have a difficult question that I cannot find any information on. Say I want to get the current username value from the registry using the following code: Dim userRegKey As RegistryKey = Registry.CurrentUser userRegKey = userRegKey.OpenSubKey("Software\\Microsoft\\Active Setup\\Installed...
  6. tpra21

    Exception on ListBox Read

    Below, I am trying to read through a listbox and check for selected items. I am getting the following exception on the following line of code: Public member Selected on type String not Found If lstCustInfo.Items(i).Selected = True then For i = 0 To lstCustInfo.Items.Count - 1 If...
  7. tpra21

    Stripping Quotes from a String

    I apologize if this answer is elseware, but I have looked for hours now with no luck. I am reading a comma-delimited text file and parsing the record into fields using Split(). I have a customer name fields that contains the following: custName = "Main Street Produce" (including the quotes)...
  8. tpra21

    Data Set not Refreshing after Delete

    In the code below, I have two textboxes and a combo box all bound to columns in the Reminders table. My ADD and UPDATE buttons work perfect, and refresh the data in my bound controls afterward. I cannot for the life of me get my DELETE button to refresh my bound controls after I click the delete...
  9. tpra21

    Parameter Error after Catching Exception

    The code below will add a record to my Reminders table. The DueDate is a date type in mm/dd/yyyy format. When I run this and enter an invalid date in the txtDate textbox, it throws and catches a format exception and displays a message box. The problem is after the user clicks ok on the error...
  10. tpra21

    IConvertable Error on Update Statement

    I am trying to update two rows in a table based on the ReminderID, which is selected by the user from a ComboBox. The COmboBox is binded to the ReminderID field in the Reminders table. The following is the code in Error: Dim StrUpdate AsString = "UPDATE Reminders SET DueDate = ? , Message =...
Back
Top