Quote:
The code shows errors...
Getting your code to compile is a fundamental part of "being a developer" - and just throwing your code at other people and saying "it don't work" doesn't help you develop at all.
Visual Studio is very helpful when it finds a problem; it's error messages are normally very good and accurate. So start with the error list and look at what it says. Double click on an error message and it will take you to the actual line, where the problem part will be underlined in red. Read the message, and it should be fairly obvious what the actual problem is - check what you wrote against the actual syntax you should have used, check your brackets match up, and check your code against the documentation for all methods you are calling, and that should cover most problems pretty quickly.
Give it a try - this is the easy part: getting your code to do what you wanted it to once it compiles is the hard bit!