![]() Passedit.Text = (0).SubItems(2).ToString.Substring(18, passtotal)Īny pointers on cleaning up this code would probably help too. Private Sub TextBox13TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Dim dtRow, dtCol As Integer ListView1.Items(dtRow).SubItems(dtCol).Text TextBox13.Text. Useredit.Text = (0).SubItems(1).ToString.Substring(18, usertotal) ![]() This is the code that populates the boxes: Private Sub Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadĭim appeditcontents As String = (0).ToStringĭim appstrlen As Integer = appeditcontents.Length()ĭim usereditcontents As String = (0).SubItems(1).ToStringĭim userstrlen As Integer = usereditcontents.Length()ĭim usertotal As Integer = userstrlen - 19ĭim passeditcontents As String = (0).SubItems(2).ToStringĭim passstrlen As Integer = passeditcontents.Length()ĭim passtotal As Integer = passstrlen - 19Īppedit.Text = (0).ToString.Substring(15, apptotal) ![]() What command would I use to change the selected listview item and subitems to whatever is in the boxes? The user can then change the data in the textboxes and either press save to make the changes or cancel to close the window. ![]() Ok, so I have a listview on one form, and when a button is pressed it opens up a new form with the contents of the selected listview item and it's subitems in a series of textboxes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |