It does not depend that much on the used language. Try looking at the WIA interface, there might be a wrapper for .net.
How to Capture Image using Webcam Using C# code.
I want to capture any image from anywhere using Web camera. But I have no idea. I collect a Web camera & I also know dot.net(C#) language. So any one can tell me How can I do it. What's the code for doing this Using C# language.