Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / Visual Basic

connecting a webcam using aforge.net in vb.net

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
27 Jan 2013CPOL 0  
Hello, The error your describing - protection level errors are about scope. That object: VideoSourcePlayer1 is inaccessible from the class you are trying to call it from. In the code pieces you provided, I don't see it declared anywhere either. I would look for it's declaration, and...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
5 Feb 2017Member 9626615 5 alternatives  
Hi everyone,I am new to this forum and am a beginner programmer.I wish to develop a motion detector program in Visual Basic.NET. I've tried the windows API for connecting the webcam to my project.While surfing the net I came across to this forum and found a project which uses...
Please Sign up or sign in to vote.
27 Jan 2013pdoxtader
This is the key line here, I think:Friend WithEvents VideoSourcePlayer1 As AForge.Controls.VideoSourcePlayerIt's not just an object, it's a 3rd party control - and it's found in the AForge class. It has Events - and I think you probably aren't handling them. I think you need to dig...
Please Sign up or sign in to vote.
28 Jan 2013Member 9626615
Guys, i finally found this VideoSourcePlayer1. So this is an object that you have to add first in the toolbox. what i did is, right click the toolbox > Choose Items > Browse and add the aforge.controls.dll, then components including VideoSourcePlayer appeared and that's it :) thank you for helping.
Please Sign up or sign in to vote.
10 Mar 2014JRayH
If you are using NuGet to load AForge, note that the AForge.Controls package must be separately loaded. THEN create a new tab in Toolbox, call it AForge, right-click in the empty tab and select Choose Items, then Browse to your solution folder, then down to packages, then into...
Please Sign up or sign in to vote.
5 Feb 2017chizengwe
you need to add aforge.net references to your project. then you go to the toolbox and add the videosource component. its important to make sure that you paste the aforge dll files into your project files and reference them from there: chizz is there for you all the time

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
President Doxtader Industries LLC
United States United States
I've been in IT for the last 25 years in one capacity or another - always as either a network engineer or a developer... or both. At the moment I have an IT consultancy in Long Island, NY offering software development and network engineer services.

Comments and Discussions