Visual basic 2003: Convert 'String' to 'Double'

I'm trying to do deployment with strict on.
However, editstudCourse Fee.text is giving me error="option strict on disallows implicit conversions from string to double."
Hope someone can shed some light on this.

    Dim TaxValue As Double = 5
    Dim TaxValueContainer As String

    Dim courseFee As Double = 0
    Dim courseFeeContainer As String

    Dim TaxDisplay As Double
    Dim TaxValueInput As Double
    'Dim noContainer As String
    Dim no1, no2, no3, no4 As Double


   editstudTaxAmount.Text = editstudCourseFee.Text * TaxValue / 100   <--How to convert editstudCourseFee.Text from 'string' to 'double'
            no1 = Double.Parse(editstudCourseFee.Text)
            no2 = Double.Parse(editstudTaxAmount.Text)
            editstudTotalPayable.Text = Round(no1 + no2, 2).ToString

            no3 = Double.Parse(editstudTotalPayable.Text)
            no4 = Double.Parse(editstudTotalPaid.Text)
            editstudTotalBalance.Text = Round(no3 - no4).ToString
Who is Participating?
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.

Hello werD420,

you can use
editstudTaxAmount.Text = Convert.ToDouble(editstudCourseFee.Text) * TaxValue / 100

but why are you converting to double on the next line?

hope this helps a bit
and you probably need to reconvert after the calculation
editstudTaxAmount.Text = Convert.ToString(Convert.ToDouble(editstudCourseFee.Text) * TaxValue / 100)

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
Mike TomlinsonMiddle School Assistant TeacherCommented:
Be sure to enclose any of your conversion calls that involve a string to a number data type in a Try...Catch block.  Otherwise your application will crash if the string contains a value that cannot be converted to a valid number.
dandeliondreamAuthor Commented:
Problem solved. A big thankQ to bruintje and Idle_Mind.
you're welcome :)
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
Microsoft Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.