[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 640
  • Last Modified:

VB.Net Screen Record

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
XGenwareS
Asked:
XGenwareS
1 Solution
 
NerdsNowCommented:
I never tried it but I ran accross this

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

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
 
noyshaiCommented:
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
XGenwareSAuthor Commented:
Ok that could work. How would I combine those into a a video file though?
0
 
noyshaiCommented:
0
 
XGenwareSAuthor Commented:
That looks like what I need, however its in VB6. I need something in C# or VB.Net for this project.
0
 
noyshaiCommented:
0
 
XGenwareSAuthor Commented:
I couldnt get that to work, but I ended up using FFMPEG to accomplish it. thanks for all the help though
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now