I have a textbox that when an house address is entered I click the "Add Home button and the number next to the scroll bar moves to 1. As more homes are added it moves to 2 and on up. I need help with the code that will enable the scroll bar when scrolled backwards it will remember the previous address that was entered in to the textBox. Here is some code and I have 'Get current houses address and display in txtAddress' where the code should be.
'Get the current house's address and display in txtAddress
If TypeOf marrHouses(pintCurrent) Is HousePackage.Barcelona Then
cbxModelType.SelectedIndex = 0
ElseIf TypeOf marrHouses(pintCurrent) Is HousePackage.Madrid Then
cbxModelType.SelectedIndex = 1
Else
cbxModelType.SelectedIndex = 2
End If
'Get the current house's address and display in txtAddress
If TypeOf marrHouses(pintCurrent) Is HousePackage.Barcelona Then
cbxModelType.SelectedIndex = 0
ElseIf TypeOf marrHouses(pintCurrent) Is HousePackage.Madrid Then
cbxModelType.SelectedIndex = 1
Else
cbxModelType.SelectedIndex = 2
End If