Hello,
VS 2005
I have user control that has been placed on many tab pages. The tab control is not part of the user control. The user control consists of text boxes and combo boxes
The user can add new tabs and enter the data into it the user control and click save which is also part of the user control. However, if they decide to save on a previous tab and then click save it will save the contents of the text boxes and combo boxes that are on the last tab.
This is because the text boxes and combo boxes are taken from the last ones that are created.
How can I select another tab and click save, and save the contents of those text boxes and combo boxes on that tab?
my code for the save button in the user control.
Code:
Many thanks for your help,
Steve
VS 2005
I have user control that has been placed on many tab pages. The tab control is not part of the user control. The user control consists of text boxes and combo boxes
The user can add new tabs and enter the data into it the user control and click save which is also part of the user control. However, if they decide to save on a previous tab and then click save it will save the contents of the text boxes and combo boxes that are on the last tab.
This is because the text boxes and combo boxes are taken from the last ones that are created.
How can I select another tab and click save, and save the contents of those text boxes and combo boxes on that tab?
my code for the save button in the user control.
Code:
Code:
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
Try
Dim rowsAffected As Integer = Me.TA_IncidentTask1.UpdateTask(_incidentID, Me.cboSupportType.Text, Me.cboUsers.Text, Date.Now.ToLocalTime(), Date.Now, Me.txtTaskDetails.Text, Date.Now, Date.Now.ToLocalTime(), Me.cboStatus.Text, String.Empty, String.Empty, Me.txtCompletionNotes.Text, _taskID)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Many thanks for your help,
Steve