I would like to do a seperated class with a method which will return CustomerID (this will be a select query from db), based on the Costumer`s name which would come into this method (it will come from a form1`s method - from a textBox).
I am not sure how to do all these connections that the name will come from form1 to CustomerID method in class1.
And then when CustomerID if found it has to pass it back to Form1.
So, from form1 to Customer method in class1 goes the name, and back from method to from1 goes id.
Is this possible?