.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Timed Camera Capture in Window Mobile

Posted By: Syed Shakeer Hussain     Posted Date: March 17, 2011    Points: 2   Category :.NET Framework
WM5.0 has three new ways of working with the camera, but unfortunately the two mechanisms easily accessible from managed code both require user input in order to capture an image.

The first new api is CameraCaptureDialog that allows an application to invoke the camera view so the user can capture stills, video or video and audio files to a store location on the device.

CameraCaptureDialog ccd = new CameraCaptureDialog();


pictureBox1.Image = new Bitmap(ccd.FileName);

View Complete Post

More Related Resource Links

Performance Tuning on DirectShow Camera Application

Windows CE 6.0 supports DirectShow® components to develop a rich camera application. A minimum requirement of the camera application is to show preview, capturing the still images which is stored as a compressed file (JPG) format, capturing/multiplexing the video with or without audio i.e. stored as a compressed file (WMV) format.

Windows CE 6.0 provides sample applications for showing preview, capturing still and video using DirectShow® components. However these sample applications doesn't cover all the aspects to develop a commercial application. A commercial camera application at least satisfies the following performance criteria.

Use Camera as Barcode Reader

some important links



Form Filler: Build Workflows to Capture Data and Create Documents


Learn how to create a workflow that uses InfoPath forms and other office documents for passing data to targeted activities and for use in Office documents.

Rick Spiewak

MSDN Magazine June 2008

Capture event from HierarchicalDataSource


I have a custom hierarchical data source based on the msdn example (http://msdn.microsoft.com/en-us/library/system.web.ui.hierarchicaldatasourcecontrol.aspx).  An event can be raised in the DataSourceView.  If that occurs, I want to display a message on the web page.

The example is that I have a page with a TreeView control which uses a custom hierarchical datasource.  If the user selects a node that they are not allowed to select, the underlying datasource will throw and error.

I want to capture this and add a message to the page.  The Page_Error event is raised, but there are no eventargs.

Anybody know how to capture such an event? 

An alternative approach, although not quite specific enough, is to set a flag during the datasource load event (indicating the datasource is loading) and test for this flag in the Page_Error routine.

How to capture ReportViewer Mouse Events


I have a ReportViewer which I'm pulling into a C# WPF project, and would like to be able to capture the row a user clicks on in the reportViewer, but have had no success tapping into the mouse event handlers.   Does anyone know how to accomplish this?  

This MSDN link seems to imply that ReportViewer(winforms) supports mouse click events such as Click, DoubleClick..etc.  http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportviewer_events.aspx, but I've not had any luck.

If mouse events are not currently supported, does anyone know when they will be, and whether properties such as SelectedItem or SelectedIndex would also be exposed?

Thanks for the help.

Issue with Web capture webpart configuration


I have a requirement to display a specific are of page.
I think we can do it by using web capture webpart. when i try to modify the properties of webcapture webpart it prompts an message"Cannot create or modify Web Capture. Make sure that your browser supports ActiveX controls , that you have enabled them, and that you have installed the Web Capture ActiveX control".
I have installed "owc11" coponent but of no use. i am using IE 7...

can anyone please suggest how to solve this issue?


Capture Url and do redirect



I am writing a http module, Want to find out how can i capture a URL and the do a redirect in case of certin conditions met?

Capturing video remote from specific camera

Hi, I like to capture video with this camera http://www.sparkfun.com/commerce/product_info.php?products_id=8773 it has a rca output wich should be converted to a bytearray to send over a serial interface like ZigBee and back to show it on a eg laptop. I've got two questions: 1. How can I convert a rca signal to a bytearray? 2. How can I convert a bytearray back to a rca signal? Rca is the yellow plug for your video! Any help would be appreciated! Roel

What pattern do I use to capture an entire C# method definition with all modifiers, method name and

Hello all,Given a C# method named MyMethod, what pattern do I use to capture the entire definition, including modifiers, method name and opening and closing braces, irrespective of bracket styles, given that the method will probably contain 1-n other pairs of braces, embedded or not, etc? In this case, I don't care about the actual method definition, I just need to capture it all in one chunk.    a. public int MyMethod(int parm){            if (...) {            }       }    b. public int MyMethod(int parm)       {            if (...) {            }       }Thanks in advance for any ideas and/or suggestions!

SQL DIAGOSITC MANAGER tools capture "SELECT *" statement while ALTER / ADD CHECK CONSTRAINT is execu

Hello  ,   I exectuted the code(alter/add with check)  below in SSMS . My_table has 200 millions records . While running the alter/add with check query  the server crashed and the “SQL DIAGOSITC MANAGER” which run on the top of sql serever alert the DBA that select * from my_table was obtained from the last command issued by the user using a DBCC command.      Where does the select * from my_table comes from ? I didn’t excuted select * from my_table at all .   After the sql serever re started I was able to run the command below with out any problem. I checked the SQL PROFILER for the trace there is no “select * from my_table” .   So again where this select * from my_table comes from ?   Here is my initial query ----------------------------------------------------------------- ALTER TABLE [Dbo].my_table WITH CHECK ADD  CONSTRAINT [FK_key1] FOREIGN KEY([Key1]) REFERENCES [Dbo].[Dim_table1] ([Key1]) GO   ALTER TABLE [Dbo].my_table CHECK CONSTRAINT [FK_key1] GO   ALTER TABLE [Dbo].my_table WITH CHECK ADD  CONSTRAINT [FK_key2] FOREIGN KEY([key2]) REFERENCES [Dbo].[Dim_table2] ([key2]) GO   ALTER TABLE [Dbo].my_table CHECK CONSTRAINT [FK_key2] GO   ALTER TABLE [Dbo].my_table WITH CHECK ADD  CONSTRAINT [FK_key3] FOREIGN KEY([d], [c], [r], [g]) REFERENCES [Dbo].my

Yet another WPF Screen Capture (with Rectangle) App

  The Plan:         I had plan on adapting the following, which is an old Microsoft sample implementing of a rubberband rectangle for my app               http://support.microsoft.com/kb/314945         To simulate a selectable area to capture i would display a wpf window over the entire desktop and make it transparent. Then i would use the window as the surface on which to do the mouse area selection and draw the rubberband rectangle on the mouse move.  I would then pass the point coordinates of the rectangle to this bit of code to do the actual capture. public static BitmapSource Copy(int left, int top, int right, int bottom) { using (var screenBmp = new Bitmap(right - left, bottom - top, PixelFormat.Format32bppArgb)) { using (var bmpGraphics = Graphics.FromImage(screenBmp)) { bmpGraphics.CopyFromScreen(left, top, right, bottom, screenBmp.Size); return Imaging.CreateBitmapSourceFromHBitmap( screenBmp.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); } } } The Malady:         When i make the wpf window transparent i completely loose it as a surfa

Capture and pass "abc\xyz" as a string into my WCF method

Hi All, I am trying to implement WCF Method where client has to pass like "abc\xyz" as a string i have to capture it and pass to my method. I am not able to do it. In our application we can split the string  and we can do what ever we can do . but string comes from client site so who do i capture into my method. I am very much new in WCF. Could u please help me. Thanks Shekhar  

Signature Capture App

Hi, I have a project at work that I would like to build using asp.net mobile controls. However I have one problem. Part of the mobile app requires that a signature is captured. Can anyone suggest a awy of doing this? The only way I can think of is to use GDI, but that would require use of the .net compact framework. Even using GDI, there is still the problem of getting that back to the server. Any suggestion would be very welcome, Mark

Capture screenshot of panel

Hi, I am working in Windows application. I wanna take screenshot of a Panel and its contents. The code which I use now is taking the screenshot but the contents which are beyond the scrollbars are not capture in the image. Please help me urgent how to take screenshot of entire panel without scroll bar and the entire content beyond the scroll bars

Capture the xml filename and load in a table

Hey I am having folder which contains multiple xml files.Now I need to read the xml file name and write in a table. I follwed the steps which are in the following link. http://www.sqlservercentral.com/articles/SSIS/67871/ But I am getting data as well as. I need only the file name to be written in a table.

Capture posted image from Flash/swf for uploading

This is the first time I've come across this kind of problem before and I'm having trouble approaching it.  I have a swf developed by someone else that posts an image and I have to create a handler of some kind to capture it, name it, then upload it to a directory.  I've tried a couple ways and nothing is working.  this is a quick an dirty approach, just an aspx file<%@ Page Language="C#" %><%@ Import Namespace="Components" %><%@ Import Namespace="System.IO" %><script runat="server">    public partial class upload : System.Web.UI.Page    {        protected void Page_Load(object sender, EventArgs e)        {            string uploadDirectory;            uploadDirectory = Server.MapPath(@"images/");            string imageName = "image.jpg";            string uploadPath = uploadDirectory + imageName;                        //FileUpload imageUpload =

image capture using webcam in asp.net with C#

hi  friends i need the help to get image using webcam   i m developing an app in which i have need to get image from webcam and store it in to database i m using visual studio 2008 and asp.net with c# any one can help me i m looking for code for this operatio
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend