What is happening is that you have not cleared the 'tbxHistory' before you are adding to it again. You don't need to clear the list, but you need to clear the textbox just before you loop through the list again.
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As...
My general rule of thumb is to make things as generic as possible to start with and then work towards specifics. This is why I suggested the general list of Damages, you can add as many as you like to a car or as few and no changes need to done to the Car class.
If you make the damages/services...
I think you need to revisit the requirements. I understand the Car class -- but it seems that you have too many misc. properties for the Car.
#Region "SSR Lists & Price Variables"
Public SSR_ScratchDamage As List(Of String) = New List(Of String)
Public SSR_ScratchPrice As Short = 0...
Give it a try.... did not proof it in visual studio so check for errors. :)
Public Sub OpenForm_Click(ByVal sender As Object, ByVal e As EventArgs) Handles openforms.Click
Dim formToOpen As Form = Nothing
If selectedForm.SelectedIndex = 0 Then
formToOpen = new Form3()...
This is a pretty basic function used to fill a DataTable with data from a SQL database but could easily be adjusted for different types of databases.
Public Shared Function FillTable(ByVal dtReturn As DataTable, ByVal SelectStatement As String, ByVal ConnectionString As String, Optional ByVal...
You haven't told the Command object how it is suppose to connect to the database, even though you have a connection object.
Personally I prefer the Using statement when doing database work.
In your specific code....
cnn = New SqlConnection(connectionString)
Dim oReturnValue As object = myCommand.ExecuteScalar()
If oReturnValue IsNot Nothing Then
Dim dteReturnValue As DateTime = Convert.ToDateTime(oReturnValue)
'plus all the code to show the payroll date.
You don't. Make a form or use the dialog box template to make one. Then on the new form you can use the Textbox control in Password mode.
Dim frmGetPassword as New MyGetPasswordDialog()
If frmGetPassword.ShowDialog() == DialogResult.OK Then
Dim Password As String =...
First you need an instance to reference. When you do songsForm.dtSongs.Rows.Count you are accessing the 'blueprint' for the songsForm not the actual instance of songsForm that has data in it.
For instance the blue prints of a house will not tell you the color of Suzie's room, because the...
Your answer is actually in your question. I believe that you will need to make a constructor for your form and pass in the LogPointer value that you need and store as a class level variable.
Public Class LogForm
Dim LogPointer As String
'constructor for new form
'This will open a new IE application window whether there is already an IE application running or not, and go to the relevant address passed as the argument
'Dim psi As New System.Diagnostics.ProcessStartInfo("iexplore.exe", "http://www.hamilton.co.uk/overview.cfm")
System.Diagnostics.Process is the way to go in VB.NET.
Dim psi As System.Diagnostics.ProcessStartInfo
Dim p As System.Diagnostics.Process
psi.FileName = "http://www.somewhere.com"
psi.WindowStyle = ProcessWindowStyle.Normal