From f9cb9fed8235c1745a97a66739c5bed0ea38ca21 Mon Sep 17 00:00:00 2001 From: RayskayaA Date: Sun, 7 Dec 2025 16:59:51 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=B0=D0=BB=D1=8C=D0=BA=D1=83=D0=BB?= =?UTF-8?q?=D1=8F=D1=82=D0=BE=D1=80=20=D0=B2=20=D1=81=D1=82=D1=83=D0=B4?= =?UTF-8?q?=D0=B8=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application.Designer.vb | 34 ++++++++++++++++++++++ Application.myapp | 10 +++++++ Form1.vb | 64 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 Application.Designer.vb create mode 100644 Application.myapp create mode 100644 Form1.vb diff --git a/Application.Designer.vb b/Application.Designer.vb new file mode 100644 index 0000000..56612a0 --- /dev/null +++ b/Application.Designer.vb @@ -0,0 +1,34 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.42000 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = False + Me.EnableVisualStyles = True + Me.SaveMySettingsOnExit = True + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + End Sub + + + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Form1 + End Sub + End Class +End Namespace diff --git a/Application.myapp b/Application.myapp new file mode 100644 index 0000000..fbb5858 --- /dev/null +++ b/Application.myapp @@ -0,0 +1,10 @@ + + + true + Form1 + false + 0 + true + 0 + true + \ No newline at end of file diff --git a/Form1.vb b/Form1.vb new file mode 100644 index 0000000..411aff4 --- /dev/null +++ b/Form1.vb @@ -0,0 +1,64 @@ +Public Class Form1 + Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click + + End Sub + + Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click + TextBox1.Text = "" + Label2.Text = "" + End Sub + + Private Sub Label3_Click(sender As Object, e As EventArgs) Handles Label3.Click + + End Sub + + Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click + TextBox1.Text = TextBox1.Text + "1" + End Sub + + Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click + TextBox1.Text = TextBox1.Text + "2" + End Sub + + Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click + TextBox1.Text = TextBox1.Text + "3" + End Sub + + Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click + TextBox1.Text = TextBox1.Text + "4" + End Sub + + Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click + TextBox1.Text = TextBox1.Text + "5" + End Sub + + Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click + TextBox1.Text = TextBox1.Text + "6" + End Sub + + Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click + TextBox1.Text = TextBox1.Text + "7" + End Sub + + Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click + TextBox1.Text = TextBox1.Text + "8" + End Sub + + Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click + TextBox1.Text = TextBox1.Text + "9" + End Sub + + Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click + TextBox1.Text = "" + Label2.Text = "" + Label1.Text = "" + End Sub + + Private Sub Button24_Click(sender As Object, e As EventArgs) Handles Button24.Click + If Label2.Text = "+" Then + TextBox1.Text = Val(Label1.Text) + Val(TextBox1.Text) + Label1.Text = "" + Label2.Text = "+" + End If + End Sub +End Class