Results 1 to 6 of 6

Thread: Make Your Own Calculator in VB 2008!

  1. #1
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default Make Your Own Calculator in VB 2008!

    Hi Guys,

    Yeh Basic Calculator main ne practice ke liye
    banaya tha, lekin main ne socha ke aap ke
    saath share karon.

    Image:



    Yeh Source code hai:

    Code:
    Public Class frmPlus
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    
        Private Sub cmdCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCalculate.Click
    
                'Declared two Decimal Variables
    
                Dim num1 As Decimal
                Dim num2 As Decimal
                Dim answer As Decimal
    
                ' Converted Text box and applyed their values to integers/ stored in variable
    
                num1 = Decimal.Parse(txtfirstnum.Text)
                num2 = Decimal.Parse(txtsecondnum.Text)
    
                ' Applied Value's stored in variables to answer label
                If lblsign.Text = "+" Then
                    answer = num1 + num2
    
                ElseIf lblsign.Text = "-" Then
                    answer = num1 - num2
    
                ElseIf lblsign.Text = "*" Then
                    answer = num1 * num2
                Else
                    answer = num1 / num2
                End If
    
                lblAnswer.Text = answer
    
    
        End Sub
    
        Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblheading.Click
    
        End Sub
    
        Private Sub cmdplus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdplus.Click
            lblsign.Text = "+"
        End Sub
    
        Private Sub cmdminus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdminus.Click
            lblsign.Text = "-"
        End Sub
    
        Private Sub cmdmultiply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdmultiply.Click
            lblsign.Text = "*"
        End Sub
    
        Private Sub cmddivide_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmddivide.Click
            lblsign.Text = "/"
        End Sub
    
        Private Sub cmdac_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdac.Click
            txtfirstnum.Clear()
            txtsecondnum.Clear()
            lblAnswer.Text = "Answer"
        End Sub
    
        Private Sub cmdexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdexit.Click
            Me.Close()
        End Sub
    End Class

    Project Source and Excutable file link --> VB Calculator + Source!

    I hope you guys like it,
    Thnx

  2. #2
    zaheenboy's Avatar
    zaheenboy is offline Senior Member+
    Last Online
    13th August 2013 @ 12:24 PM
    Join Date
    17 May 2009
    Age
    29
    Posts
    450
    Threads
    64
    Credits
    920
    Thanked
    25

    Default

    So nice bhai jaan.
    Any Kind of Sites/Blogs Links Not Allowed in Signature...ITD Team

  3. #3
    ali3193's Avatar
    ali3193 is offline Senior Member+
    Last Online
    6th November 2016 @ 10:13 AM
    Join Date
    02 Sep 2009
    Posts
    1,526
    Threads
    352
    Credits
    955
    Thanked
    65

    Default

    gd yar

  4. #4
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    thnx guys both of ya, i also posted another 1
    Screenshot of that Calc:



    Go to this Thread for further info:
    http://www.itdunya.com/showthread.php?t=132870

  5. #5
    faridak185 is offline Senior Member+
    Last Online
    4th November 2009 @ 06:45 PM
    Join Date
    03 Sep 2008
    Posts
    502
    Threads
    299
    Credits
    0
    Thanked
    4

    Default

    very nice tutorial

  6. #6
    SufyanGujar is offline Senior Member+
    Last Online
    29th December 2010 @ 10:59 PM
    Join Date
    10 Oct 2009
    Location
    England, UK
    Age
    34
    Posts
    157
    Threads
    10
    Credits
    0
    Thanked
    7

    Default

    Answer to ur PM, Sory my post count is not higher enogh to send PM to any1.

    Dear Faridak185,
    I am from England, I dont have any clue about jobs in karachi, but if you are an experienced programmer, you can easily get a job, if you can make softwares or hacks etc, you can earn about £10,000.
    Aik bar main bhi karachi gya tha, Nice city hai, main Model Colony, Kazmabad main gya tha,
    i hope you get what i mean if u have any further questions plz let me know. thnx

Similar Threads

  1. Make Calculator Icon on Screen
    By sibghati in forum English IT Zone
    Replies: 22
    Last Post: 22nd October 2014, 11:26 AM
  2. How we make a Scientific calculator
    By Rizwan Anjum in forum Ask an Expert
    Replies: 3
    Last Post: 19th October 2012, 01:18 AM
  3. Make ur own calculator in C++
    By heroofdikhan in forum General Discussion
    Replies: 61
    Last Post: 17th December 2011, 11:42 PM
  4. Make Calculator Icon on Screen
    By fuNfuNy in forum General Discussion
    Replies: 4
    Last Post: 20th August 2011, 12:48 AM
  5. how to make an calculator in gw basic
    By mdhamza in forum Ask an Expert
    Replies: 7
    Last Post: 5th August 2009, 06:39 AM

Bookmarks

Posting Permissions

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