Search results for query: *

  1. tpra21

    An Example Application with Extensive Database Functionality

    Thanks for the info! I will definitely thorougly read through and study those. One last question, the below link has a very nice example that I downloaded (very simple though). Are the methods used here to access the DB outdated? http://www.itwriting.com/pcw/vbdotnetdata.php Also, this site...
  2. 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...
  3. tpra21

    Updating items in a listbox

    Nice code, but that isn't what I mean. I added an item to a comma-delimited file (CSV). The combo box displays the unique idea of each record in the file. i have just added a new record to the file, and I now need the combo box to be updated and display the new record id.
  4. 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...
  5. 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...
  6. tpra21

    IComparable Problem

    JohnH, Once again your brilliance has saved me. Thanks so much for your wisdom. Adam
  7. 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...
  8. tpra21

    Using Relative Path with Registry Key

    Thanks for the post. That code worked! Thanks again, Adam
  9. tpra21

    Using Relative Path with Registry Key

    The problem I have is a PDA is plugged into the PC. The PDA installs a documents folder on the PC. In the registry, it creates a path consisting of three folders and with registry key in the third folder. Example: Registry key path: Software\Windows CE\56af443d\ Then we have a registry key...
  10. 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...
  11. tpra21

    Exception on ListBox Read

    thanks, I'll try that!
  12. 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...
  13. tpra21

    Stripping Quotes from a String

    I must say, this is embarassing :o . I was not saving the result to the replace function, and now that I am, it works great! Thanks to everyone!! Sometimes the simple issues seem to be the toughest for me. CJard, thanks for that library, I will definitely throw that in the collection for some...
  14. tpra21

    Stripping Quotes from a String

    I found this code compliments of BLUMonde (Slightly changed), and it works for trimming the leading quotes, but I can't get the right trim to work. ANy ideas? If Microsoft.VisualBasic.Right(glCustName.Trim, 1) = """" Then' Strip out quotes" Then glCustName = glCustName.Trim.Substring(0...
  15. tpra21

    Stripping Quotes from a String

    I tried the following with no luck: Try custName.Replace("""", "") I don't get a syntax error, but it is if the command isn't recognizing the quotes as the character needing to be stripped. Is there any character that I must place before a quote to let vb know that that is what I want...
  16. 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)...
  17. tpra21

    Parameter Error after Catching Exception

    First, thanks for the expression. I didn't know those even existed! And as for me not doing it right by using exception handling, that is the criticism I need to become better at programming VB (I am fairly new to VB.Net), so thanks. Secondly, I did realize that it would be better to use a...
  18. tpra21

    Data Set not Refreshing after Delete

    The row is getting deleted because when I look in the data base, it is gone. Plus, if I exit the form and then return (without exiting the program) the data is updated to reflect the deleted row. I however did not realize that the finally block is always executed, so I will look into that...
  19. 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...
  20. 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...
Back
Top