JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



Populate new form based on Combobox


J

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam jonathonnapier
Posts: 1 - Registered: 2013-04-27 16:58:59

I am trying to learn VB 2010. I have an Starting form with a combobox that has the following 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


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






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising