you could provide one text box first, and use an IF statement and if if matches, make visible, on the same form, a second text box and test those for equality.
VB Code:
'This would be in a button_click event frmDialog.showdialog 'this would be in another _click event on frmDialog dim OldPass as string = textbox1.text if pass <> [whats on the DB] then 'provide an error here else textbox2.visible = true buttonChangePass.visible = true end if 'This would be a _click event for a buttonChangePass if textbox1.text <> textbox2.text 'provide an error here else 'Make the changes on the database according to text box1 or 2




Reply With Quote