I need the user to be able to add information in a form using classes in vb.net

I need a user to be able to add first name, last name,  address, city, state, and zip from a form.  In my program I have a person file that has a constructor with all of the following info.

In class how do I go about this?
Kahlan27265Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arif_eqbalCommented:
?? Could not get your Query

You need to have a Form with these fields and User will add Record
When he clicks save the data is to be passed to a class which will save it

Is this what you want??
0
PreachDotNetCommented:
Public Class clsUser
   Private mName
   Private mSurname
   Private mAddress

  Public Function Create (Optional inName as string = "", Optional inSurname as string = "", Optional inAddress as string = "") as Boolean
  mName = inName
  mSurname = inSurname
  mAddress = inAddress
  return true
End Function
End Class

in your form

Public Function Submit_Button_Click
  Dim mUser as new clsUser
 Dim mResponse as boolean =  mUser.Create txtName.Text, txtSurname.Text, txtAddress.Text
if mResponse then
  msgbox "Success"
else
  msgBox "Fail"
End if
end function
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.