Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2013 Need some slight help [Beginner Programmer]

$
0
0
Afternoon,

I'm currently working on a project and currently have a few issues with the peace of code i have written.

Code:

Public Class Form1
    Dim room, roomwithpaint As single
    Dim bal As Double
    Private Sub FlatButton1_Click(sender As Object, e As EventArgs) Handles FlatButton1.Click
        room = textboxheight.Text * textboxwidth.Text


        If luxury.Checked = True Then
            roomwithpaint = room * "1.75"
        ElseIf standard.Checked = True Then
            roomwithpaint = room * "1.00"
        ElseIf economy.Checked = True Then
            roomwithpaint = room = "0.45"
        End If
        If undercoat.Checked = True Then
            bal = "0.50" * roomwithpaint
        End If
        Label1.Text = bal

    End Sub
End Class

I Would like to know if anybody knows the issue with the sequence of code as i would like to learn from my mistakes.

Thanks in advance
Steff

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>