Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB 2008 | Taschenrechnerproblem

Empfohlene Antworten

Veröffentlicht

Moin Leute,

Da ich diese Woche in der Arbeit nicht viel zu tun hatte, hab ich mal etwas an Visual Basic rangemacht.

Jetzt wollte ich mal versuchen einen Taschenrechner zu programmieren (gerade eben begonnen und schon komm ich nicht weiter) & Sobald ich dann mal Test möchte ob das Prog funktioniert, kommt die Fehlermeldung

"InvalidOperationException wurde nicht behandelt" (in der Titelleiste)

Bis jetzt hab folgendes:


Public Class Form1

    Dim Zahl1 As Double = txtZahl1.Text

    Dim Zahl2 As Double = txtZahl2.Text


    Private Sub optPlus_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles optPlus.CheckedChanged, optMinus.CheckedChanged, optMal.CheckedChanged, optGeteilt.CheckedChanged


        If optPlus.Checked Then

            lblRechenzeichen.Text = " + "

        ElseIf optMinus.Checked Then

            lblRechenzeichen.Text = " - "

        ElseIf optMal.Checked Then

            lblRechenzeichen.Text = " * "

        Else

            lblRechenzeichen.Text = " / "

        End If


    End Sub



    Private Sub cmd1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmd1.Click

        If optPlus.Checked Or optMinus.Checked Or optMal.Checked Or optGeteilt.Checked Then

            txtZahl2.Text &= 1

        Else

            txtZahl1.Text &= 1

        End If

    End Sub

End Class

Hier noch n Bild von der Oberfläche:

rechner.jpg

Mfg Cartman

Okay, hat sich erledigt :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.