This article explains that how to make a
magnifier in c#.
Introduction
You have a magnifier in your windows system. It is available at:
- C:\Windows\system32\Magnify.exe
or - Start > all programs > accessories > ease of access > magnifier
How to design it in C# Form Application
Here are some steps by using this you can design your own "Magnifier" in c#.
Steps are as follows:
- Open Visual Studio.
- Then Click on File > New > Project or
(Ctrl + Shift + N)

- Now select "Window Form Application" and
give the name of the application

- Drag and Drop one "PictureBox" and one "Timer" on the form.
- Right click on "Timer" and Click on "Properties"
- Enable the "Enabled" Property
as "TRUE"

- Now On the Timers Tick event write the
following code.
Graphics g;
Bitmap bmp;
private void timer1_Tick(object sender, EventArgs e)
{
bmp = new Bitmap(250, 200);
g = this.CreateGraphics();
g = Graphics.FromImage(bmp);
g.CopyFromScreen(MousePosition.X - 100, MousePosition.Y - 10, 0, 0, new Size(300, 300));
pictureBox1.Image = bmp;
}
- Now Run This and See Output

Aly HunzikPosted May 16, 2017, 9:34 AM
Hello Sir.. I m doing All the step in same way u are doing above but whenever i move cursor inside the form it makes infinite loops please give me a solution