Results 1 to 2 of 2

Thread: Screen recorder

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2010

    Screen recorder

    Hey, I'm Danny.

    This should be a simple programing question, but i am new to Visual basics and i am not sure what i need to do.

    I am creating a screen recorder, and i have followed a code exactly from a video on Youtube, however they were using VB 2008, and im using 2010.

    The code that i am confused about is as follows:
    Private Sub RECScreen_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RECScreen.Tick
            If CheckBox1.Checked = True Then
                Dim DirectoryA As String = FileDIR.Text
                Dim Frame0 As String = FileNUM.Text
                Dim Img0 As String = FileNUM.Text
                FileNUM.Text = FileNUM.Text + 1
                VideoScreenWindow.VideoScreen.Load(DirectoryA & Frame0 & Img0)
            Else : Dim ScreenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
                Dim BMP As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
                Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
                g.CopyFromScreen(New Point(O, O), New Point(O, O), ScreenSize)
                Dim DirectoryA As String = FileDIR.Text
                Dim Frame1 As String = FileNUM.Text
                Dim Img1 As String = FileNUM.Text
                FileNUM.Text = FileNUM.Text + 1
                BMP.Save(DirectoryA & Frame1 & Img1)
            End If
        End Sub
    The bold parts are the problem - i am being told that they have not been declared, but i don't understand how i could declare them as integers(i guess thats what it means).

    Please help?

    Last edited by si_the_geek; Dec 23rd, 2010 at 01:40 PM. Reason: added Code tags

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Southeastern MI

    Re: Screen recorder

    Those are the letter O, not the number zero. Change them to zeros.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width