This is a very basic and general question to ask. There are a lot of different ways to accomplish it, it all depends on your project. If you don't even know where to start then you need to do some research first. I would suggest using
google[
^] for starters. You can also find help
here [
^] in the articles on CodeProject.