Does anyone know the code for a save button?

say when i put a button and double click for the code i need the code whichs saves all the data which has been put into the textboxes on the form.