Code Change From Visual Basic.net - Visual Studio 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JohnSmith

    Code Change From Visual Basic.net - Visual Studio 2005

    I am working on a tuturial that i have for Visual basic.net ( for now )

    I am working with Visual Studio 2005.

    I have been working on a code to change the text color by the name put into
    the text box.

    Visual Basic .Net code.
    Label2.ForeColo r = Color.FromName( TextBox1.Text)

    i get the error
    Name 'Color' is not declared.

    I was wondering if someone can show me how things would be in Visual Studio.

    thank you



  • Jan Hyde

    #2
    Re: Code Change From Visual Basic.net - Visual Studio 2005

    "JohnSmith" <SpamRepellent@ yahoo.com>'s wild thoughts were
    released on Tue, 08 Aug 2006 21:07:01 GMT bearing the
    following fruit:
    >I am working on a tuturial that i have for Visual basic.net ( for now )
    microsoft.publi c.dotnet.langua ges.vb

    This is a VB6 (and below) group.

    J
    >I am working with Visual Studio 2005.
    >
    >I have been working on a code to change the text color by the name put into
    >the text box.
    >
    >Visual Basic .Net code.
    >Label2.ForeCol or = Color.FromName( TextBox1.Text)
    >
    >i get the error
    >Name 'Color' is not declared.
    >
    >I was wondering if someone can show me how things would be in Visual Studio.
    >
    >thank you
    >
    >

    Jan Hyde (VB MVP)

    --
    If native Americans made a raw fish dinner, would it be called
    Souix-shi? (Obnoxio The Clown)

    Comment

    Working...