need help with option strict on

I am taking a class in college and running into a problem. I have some code that runs good but when i put in "Option strict On", I then can no longer run my program. Please help. Here is my code:

Option Strict On

Public Class hagerstownWaterBill
    Inherits System.Windows.Forms.Form

    Private Sub uiCalculateBillButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles uiCalculateBillButton.Click
        'Set default variables
        Const waterChargePerGallon As Double = 0.00175
        Dim CurrentReading As Double
        Dim PreviousReading As Double
        Dim gallonsUsed As Double

        'Set default variables
            CurrentReading = Me.uiCurrentReadingTextBox.Text
            PreviousReading = Me.uiPreviousReadingTextBox.Text

            'if CurrentReading >= PreviousReading then do calculations, otherwise display message
            If CurrentReading >= PreviousReading Then
                'Perform calculations
                gallonsUsed = CurrentReading - PreviousReading
                uiGallonsUsedAmtLabel.Text = Format(gallonsUsed, "N0")
                gallonsUsed = gallonsUsed * waterChargePerGallon
                uiWaterChargeAmtLabel.Text = Format(gallonsUsed, "C2")
                'Display error message
                MessageBox.Show("The current reading must be greater than or equal to the previous reading", _
                "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Information)
            End If

        Catch ex As Exception
            MessageBox.Show(ex.Message, "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Information)
        End Try
    End Sub

    Private Sub hagerstownWaterBill_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress, uiCurrentReadingTextBox.KeyPress, uiPreviousReadingTextBox.KeyPress
        'user can only press numeric keys
        If (e.KeyChar < "0" OrElse e.KeyChar > "9") Then
            e.Handled = True
        End If
    End Sub
    Private Sub hagerstownWaterBill_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles uiCurrentReadingTextBox.TextChanged, uiPreviousReadingTextBox.TextChanged
        'Clear error message
        Me.uiGallonsUsedAmtLabel.Text = ""
    End Sub
    Private Sub uiExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles uiExitButton.Click
        'Close Window
    End Sub
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you post all the places the compiler is giving you errors.  These two are easy to spot:

          CurrentReading = Me.uiCurrentReadingTextBox.Text
          PreviousReading = Me.uiPreviousReadingTextBox.Text

They should be:

          CurrentReading = cdbl(Me.uiCurrentReadingTextBox.Text)
          PreviousReading = cdbl(Me.uiPreviousReadingTextBox.Text)

But there may be others.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mappenzellarAuthor Commented:
I am not familiar with cdbl but that did in fact do the trick. Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.