Solved

VB.Net Screen Record

Posted on 2010-08-27
8
631 Views
Last Modified: 2012-05-10
I need to record screen activity in vb.net. I have tried using Windows Media Encoder, but it is rather buggy and if possible, I would like to not rely on 3rd party programs for this, or at least have something that works properly.
0
Comment
Question by:XGenwareS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 6

Expert Comment

by:NerdsNow
ID: 33548286
I never tried it but I ran accross this

http://www.sythe.org/showthread.php?t=175353
0
 
LVL 5

Expert Comment

by:sindhuxyz
ID: 33548673

This codeproject is about capturing screens to video.
http://www.codeproject.com/vb/net/CaptureScreenAsVideo.asp


If you just want to capture screen then check this site. It has several different samples on how to capture screen. They mentioned methods available in VS2005, to using Clipboard, and also windows API (read the comments for more code).
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=309&lngWId=10

This project has info on inserting images into avi.
http://www.codeproject.com/cs/media/aviFileWrapper.asp

Refer:
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_21968936.html
0
 
LVL 3

Expert Comment

by:noyshai
ID: 33577261
This code takes a single screen shot, I guess that you can use it in a loop to get sort of a video if you'll like.
 Dim aBounds As Rectangle = Screen.PrimaryScreen.Bounds
    Dim screenshot As New System.Drawing.Bitmap(aBounds.Width, aBounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
    Dim graph As Graphics = Graphics.FromImage(screenshot)
    Private Sub cap()
        Application.DoEvents()
        graph.CopyFromScreen(aBounds.X, aBounds.Y, 0, 0, aBounds.Size, CopyPixelOperation.SourceCopy)
        PictureBox1.Image = screenshot
    End Sub

Open in new window

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:XGenwareS
ID: 33578324
Ok that could work. How would I combine those into a a video file though?
0
 
LVL 3

Expert Comment

by:noyshai
ID: 33578431
0
 

Author Comment

by:XGenwareS
ID: 33578608
That looks like what I need, however its in VB6. I need something in C# or VB.Net for this project.
0
 
LVL 3

Expert Comment

by:noyshai
ID: 33579008
0
 

Accepted Solution

by:
XGenwareS earned 0 total points
ID: 33581272
I couldnt get that to work, but I ended up using FFMPEG to accomplish it. thanks for all the help though
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question