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...
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...
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...
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...
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...
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...
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)...
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...
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...
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 =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.