Dim color As Drawing.Color Dim tempString As String If My.Forms.portfolioGenerator.portTabs.SelectedIndex = 0 Then tempString ="ff804040" color = System.Drawing.ColorTranslator.FromHtml(tempString) End If Return color
And it is throwing this exception:
System.Exception: ff804040 is not a valid value for Int32. ---> System.FormatException: Input string was not in a correct format.
It was working before, and I am not sure what changed to break it. If anyone sees something I am missing, please let me know.
This post has been edited by MrWobbles: 09 September 2008 - 09:17 AM