EDN Admin
Well-known member
Code:<br/> using System;<br/> using System.ComponentModel;<br/> using System.ComponentModel.Design;<br/> using System.Drawing;<br/> using System.Runtime.InteropServices;<br/> using System.Windows.Forms;<br/> <br/> namespace crystalrdlc<br/> {<br/> [ToolboxBitmap(typeof(ctrlCamera), "Camera.ico")] // toolbox bitmap<br/> [Designer("Sytem.Windows.Forms.Design.ParentControlDesigner,System.Design", typeof(IDesigner))] // make composite<br/> <br/> public partial class ctrlCamera : UserControl<br/> {<br/> public ctrlCamera() { InitializeComponent(); }<br/> <br/> // property variables<br/> private int m_TimeToCapture_milliseconds = 100;<br/> private int m_Width = 320;<br/> private int m_Height = 240;<br/> private int mCapHwnd;<br/> private ulong m_FrameNumber = 0;<br/> <br/> // global variables to make the video capture go faster<br/> private crystalrdlc.clsWebCamArgs x = new crystalrdlc.clsWebCamArgs();<br/> private IDataObject tempObj;<br/> private Image tempImg;<br/> private bool bStopped = true;<br/> <br/> // event delegate<br/> //public delegate void WebCamEventHandler(object source, crystalrdlc.clsWebCamArgs e);<br/> // fired when a new image is captured<br/> public delegate void WebCamEventHandler(object source, crystalrdlc.clsWebCamArgs e);// gives this error here WebCamEventHandler <br/> public event WebCamEventHandler ImageCaptured;<br/> <br/> Please Help Me...
<div style="background:none repeat scroll 0% 0% #d9c6b6;border:2px ridge #784f2b;bottom:auto;cursorointer;height:auto;margin:0px;padding:0px;right:auto;width:auto;display:none
View the full article
<div style="background:none repeat scroll 0% 0% #d9c6b6;border:2px ridge #784f2b;bottom:auto;cursorointer;height:auto;margin:0px;padding:0px;right:auto;width:auto;display:none
View the full article