Not sure of how to resolve this error... See below...

VB Code:
  1. Dim btnZero As Integer = 0
  2.     Dim btnOne = 1
  3.     Dim btnTwo = 2
  4.     Dim btnThree = 3
  5.     Dim btnFour = 4
  6.     Dim btnFive = 5
  7.     Dim btnSix = 6
  8.     Dim btnSeven = 7
  9.     Dim btnEight = 8
  10.     Dim btnNine = 9
  11.     Dim intCounter As String = 0
  12.     Dim numberArray() As String
  13.     Dim comboString As String
  14.     Dim myDec As Decimal
  15.  
  16. Private Sub btnDecimal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDecimal.Click
  17.  
  18. 'The purpose of the code below is to store button clicks into an array as a
  19. 'string so they can be joined and viewed in a rich text box.  The below button
  20. 'is for the decimal.  I thought I could store it in the array and then convert
  21. 'the string number, including the decimal as a number... so I could do
  22. 'calculations.
  23.  
  24.         ReDim Preserve numberArray(intCounter)
  25.         Dim btnDecimal As String = "."
  26.         numberArray(intCounter) = btnDecimal
  27.         rtbScreen.Text = numberArray(intCounter)
  28.         intCounter = intCounter + 1
  29.         Console.WriteLine("The Decimal button was pressed")
  30.         Console.WriteLine("intCounter =" & intCounter)
  31.         comboString = String.Join("", numberArray)
  32.         Console.WriteLine("Value of comboString =" & comboString)
  33.         myDec = Convert.ToDecimal(comboString) 'Here is my error
  34.         rtbScreen.Text = comboString
  35.  
  36.     End Sub

Thanks,

Joe