mini screen recorder test code
Post your questions regarding programming in C# in here.
6 posts
Page 1 of 1
same like vb.net mini screen recorder in youtube
in recscreen (timer) add this code:
in recscreen (timer) add this code:
Code: Select all
in button rec add
Size ScreenSize = new Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height);
Bitmap BMP = new Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height);
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(BMP);
g.CopyFromScreen(new Point(0, 0), new Point(0, 0), ScreenSize);
string DirectoryA = FileDIR.Text;
string Frame1 = FileNUM.Text;
string img1 = FileType.Text;
FileNUM.Text = FileNUM.Text + 1;
BMP.Save(DirectoryA + Frame1 + img1);
Code: Select all
in button stop add:
RECScreen.Enabled = true;
FileNUM.Text = "0";
Code: Select all
I just convert this code to v csharpRECScreen.Enabled == false
You only need 1 equals symbol to set RECScreen.Enabled to false.
basically what mandai is saying is that where you said
RECScreen.enabled == false
you have to change it to
RECScreen.Enabled = true;
because when you say == it will get if recscreen.enabled is false
when you put = it will set RECScreen.enabled to false instead of testing whether or not it is false
RECScreen.enabled == false
you have to change it to
RECScreen.Enabled = true;
because when you say == it will get if recscreen.enabled is false
when you put = it will set RECScreen.enabled to false instead of testing whether or not it is false
Bogoh67 wrote:basically what mandai is saying is that where you said== comparing
RECScreen.enabled == false
you have to change it to
RECScreen.Enabled = true;
because when you say == it will get if recscreen.enabled is false
when you put = it will set RECScreen.enabled to false instead of testing whether or not it is false
= assigning
or whatever it may be called
same in almost ANY C-based language
RECScreen.Enabled == false is wrong
RECScreen.Enabled = false is right.
RECScreen.Enabled = false is right.
6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023