How To Make A Magnifier In vb.net

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

How To Make A Magnifier In vb.net
Shim
Hello Guys ,

Today You Will Learn To Make A Magnifier In Visual Basic 2010

First Open Microsoft Visual Basic 2010

Then Create A New Project....

Form Will Load And go to properties and text name it magnifier or anything you want to name

then add a new timer from the tools and make it enabled - true then set the interval to 1

now add a new picturebox from the tools and set the size mode to stretch image

now lets begin coding

double click form
Code: Select all

Public Class form1

'done by mshimranpro

    Public Function capturescreen(ByVal links As Integer, ByVal rechts As Integer) As bitmap
        Dim b As New bitmap(CInt(picturebox1.width / 2), CInt(picturebox1.height / 2))
        Dim g As graphics = graphics.fromimage(b)
        g.CopyFromScreen(links - (PictureBox1.Width / 4), rechts - (PictureBox1.Height / 4), 0, 0, b.Size)
        g.dispose()
        Return b
    End Function

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        PictureBox1.Image = capturescreen(MousePosition.X, MousePosition.Y)
    End Sub
End Class 

now debug then done
with this i think we can make a screen recorder

credit me
Find my programs on Softpedia
User avatar
Martin
Supreme VIP
Supreme VIP
Posts: 369
Joined: Sat Aug 01, 2009 12:26 pm

Re: How To Make A Magnifier In vb.net
Martin
Image
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: How To Make A Magnifier In vb.net
Shim
hey i didnt watched that video
Find my programs on Softpedia
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

But the code is kinda exactly the same?
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: How To Make A Magnifier In vb.net
Shim
i promise i didnt watched that video and if we make an app like that that is the easiest coding . is it ?
Find my programs on Softpedia
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: How To Make A Magnifier In vb.net
Shim
i promise i didnt watched that video and if we make an app like that that is the easiest coding . is it ?
Find my programs on Softpedia
6 posts Page 1 of 1
Return to “Tutorials”