{"id":25222991,"url":"https://github.com/yemrehan/vb_calculator","last_synced_at":"2026-01-19T12:33:01.276Z","repository":{"id":247256638,"uuid":"823095612","full_name":"YEmrehan/vb_calculator","owner":"YEmrehan","description":"VB Calculator is a simple calculator app built with VB.NET that performs basic arithmetic operations like addition, subtraction, multiplication, and division. It features a user-friendly GUI and handles errors gracefully. The design is modular for easy feature expansion.","archived":false,"fork":false,"pushed_at":"2025-01-25T15:12:07.000Z","size":70,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:43:38.050Z","etag":null,"topics":["arithmetic-operations","basic-math","calculator","calculator-application","error-handling","event-handling","gui-programming","modular-design","programming-for-beginners","vb-net","visual-basic"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YEmrehan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-02T12:15:53.000Z","updated_at":"2025-01-25T15:12:10.000Z","dependencies_parsed_at":"2024-07-07T17:43:28.277Z","dependency_job_id":"689eed5a-4677-48da-9fa5-a649286e88d3","html_url":"https://github.com/YEmrehan/vb_calculator","commit_stats":null,"previous_names":["yemrehan/vb_calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YEmrehan/vb_calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YEmrehan%2Fvb_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YEmrehan%2Fvb_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YEmrehan%2Fvb_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YEmrehan%2Fvb_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YEmrehan","download_url":"https://codeload.github.com/YEmrehan/vb_calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YEmrehan%2Fvb_calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arithmetic-operations","basic-math","calculator","calculator-application","error-handling","event-handling","gui-programming","modular-design","programming-for-beginners","vb-net","visual-basic"],"created_at":"2025-02-10T23:59:15.119Z","updated_at":"2026-01-19T12:33:01.260Z","avatar_url":"https://github.com/YEmrehan.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VB Calculator: A Simple Calculator Program\n\nThis project demonstrates how to build a basic calculator application using **Visual Basic (VB.NET)**. The program features a graphical user interface (GUI) for performing arithmetic operations like addition, subtraction, multiplication, and division.\n\n---\n\n## 🚀 Key Features\n\n- **User-Friendly Interface:**\n  - Intuitive design for entering numbers and selecting operations.\n\n- **Core Arithmetic Operations:**\n  - Supports addition, subtraction, multiplication, and division.\n\n- **Error Handling:**\n  - Handles invalid inputs and division by zero gracefully.\n\n- **Extensible Design:**\n  - Modular code structure allows for easy addition of advanced features.\n\n---\n\n## 🛠 Code Example\n\n### Visual Basic Code\n```vb\nPublic Class Calculator\n\n    Private firstNumber As Double\n    Private secondNumber As Double\n    Private operation As String\n\n    ' Handle number button clicks\n    Private Sub Button_Click(sender As Object, e As EventArgs) Handles btn0.Click, btn1.Click, btn2.Click, btn3.Click, btn4.Click, btn5.Click, btn6.Click, btn7.Click, btn8.Click, btn9.Click\n        txtDisplay.Text \u0026= CType(sender, Button).Text\n    End Sub\n\n    ' Handle operator button clicks\n    Private Sub Operator_Click(sender As Object, e As EventArgs) Handles btnAdd.Click, btnSubtract.Click, btnMultiply.Click, btnDivide.Click\n        firstNumber = Double.Parse(txtDisplay.Text)\n        operation = CType(sender, Button).Text\n        txtDisplay.Clear()\n    End Sub\n\n    ' Perform calculation\n    Private Sub btnEquals_Click(sender As Object, e As EventArgs) Handles btnEquals.Click\n        Try\n            secondNumber = Double.Parse(txtDisplay.Text)\n            Select Case operation\n                Case \"+\"\n                    txtDisplay.Text = (firstNumber + secondNumber).ToString()\n                Case \"-\"\n                    txtDisplay.Text = (firstNumber - secondNumber).ToString()\n                Case \"*\"\n                    txtDisplay.Text = (firstNumber * secondNumber).ToString()\n                Case \"/\"\n                    If secondNumber \u003c\u003e 0 Then\n                        txtDisplay.Text = (firstNumber / secondNumber).ToString()\n                    Else\n                        txtDisplay.Text = \"Error: Division by zero\"\n                    End If\n            End Select\n        Catch ex As Exception\n            txtDisplay.Text = \"Error: Invalid input\"\n        End Try\n    End Sub\n\n    ' Clear the display\n    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click\n        txtDisplay.Clear()\n        firstNumber = 0\n        secondNumber = 0\n    End Sub\n\nEnd Class\n```\n\n---\n\n## 🌍 Use Cases\n\n- **Basic Arithmetic:**\n  - Perform quick calculations directly within the application.\n\n- **Learning Project:**\n  - An excellent starting point for beginners learning VB.NET and GUI programming.\n\n---\n\n## 🛠 Future Enhancements\n\n- **Advanced Mathematical Functions:**\n  - Add support for square roots, exponents, and trigonometric functions.\n\n- **Memory Features:**\n  - Include buttons for memory recall (MR), memory clear (MC), and memory add (M+).\n\n- **Keyboard Support:**\n  - Allow users to enter numbers and operations using the keyboard.\n\n- **Theme Customization:**\n  - Add light and dark mode options for the interface.\n\n---\n\n## 🎯 Benefits\n\n- **Simple and Interactive:** Provides a hands-on way to learn VB.NET programming.\n- **Modular Design:** Code can be expanded to include more features easily.\n- **Practical Utility:** A useful tool for basic calculations.\n\n---\n\n## 🌟 Conclusion\n\nThis VB.NET calculator program is a straightforward project that introduces core concepts of GUI development and event handling. Its simplicity makes it ideal for beginners, while its modular design ensures scalability for more advanced features.\n\n💡 **Start building and enhancing your VB.NET calculator today!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyemrehan%2Fvb_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyemrehan%2Fvb_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyemrehan%2Fvb_calculator/lists"}