I am trying to learn VB 2010. I have an Starting form with a combobox that has the following code.
When "btnGoToSoftware" is click I want the next form to open with labels populated based on the selection. As of now i have 4 fields. idsSoftwareID, chrSoftwareName, dtmSoftwarePurchaseDate, chrSoftwareCompany in a table.
I am using chrSoftwareName to populate the Combobox. When the go button is clicked I want to open a new form with labels populated based on the chrSoftwareName in the combobox.
Thank You
Rab
Code:
Public Class frmStartScreen
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddSoftware.Click
frmAddSoftware.Show()
Me.Close()
End Sub
Private Sub frmStartScreen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Data_dbDataSet.tblSoftware' table. You can move, or remove it, as needed.
Me.TblSoftwareTableAdapter.Fill(Me.Data_dbDataSet.tblSoftware)
End Sub
Private Sub cboChooseSoftware_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboChooseSoftware.SelectedIndexChanged
Me.Validate()
Me.TblSoftwareBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Data_dbDataSet)
End Sub
Private Sub btnGoToSoftware_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGoToSoftware.Click
End Sub
End Class
I am using chrSoftwareName to populate the Combobox. When the go button is clicked I want to open a new form with labels populated based on the chrSoftwareName in the combobox.
Thank You
Rab