Arduino PWM Visual C#

I just want to control, for example pin 2 of arduino mega with PWM.