Hi,
I am not quite sure I understood 100% of the question, but I think you are asking how to use procedures.
First of all, you need to define that procedure. I am considering that you only want to execute code, and do not need data that gets in or out of your procedure.
Defining a procedure :
CODE
Private Sub myProcedure()
'Put some code here...
MessageBox.Show("Hello world!")
End Sub
And then, whenever you want to execute your procedure, you can simply call it this way :
CODE
'Some code before calling the procedure
myProcedure()
'Some code after calling the procedure
This way, you can easily "reuse" code that has to be executed multiple times without copy/pasting it back every time. You can also add parameters to this procedure. This way, the code can be used, for example, for managing texts from a textbox.
Procedure :
CODE
Private Sub myCode(ByVal myTextBox As TextBox)
myTextBox.Text = "Hello world!"
End Sub
Using it in your form :
CODE
myCode(TextBox1) 'Inserting text into textbox1 by using a procedure
'you can do this for any textbox in your form
myCode(TextBox2)
I really hope that may help you. Good luck getting started with Visual Basic.net