Home All Groups Group Topic Archive Search About
Author
20 Sep 2005 3:50 PM
cyzpro
I am new to VB and I am creating a simple calculator for practice. I am using
VB .Net
I want button's background color to change when mouse hover over it but VB
keep tell me that Name 'color' is not declared.
following is the code
    Private Sub plus_button_MouseHover(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles plus_button.MouseHover
        plus_button.BackColor = Color.Blue
    End Sub

Author
20 Sep 2005 4:02 PM
Rick Rothstein [MVP - Visual Basic]
Almost everybody in this newsgroup is using VB6 or lower. While
you may get a stray answer to VB.NET (including VB2003 and VB2005
which has dropped .NET from its name) questions here, you should
ask them in newsgroups devoted exclusively to .NET programming.
Look for newsgroups with either the word "dotnet" or "vsnet" in
their name.

For the microsoft news server, try these newsgroups for Visual
Basic .NET related questions...

   microsoft.public.dotnet.languages.vb
   microsoft.public.dotnet.languages.vb.upgrade
   microsoft.public.dotnet.languages.vb.controls
   microsoft.public.dotnet.languages.vb.data

And these for more general .NET questions

   microsoft.public.dotnet.general
   microsoft.public.vsnet.general

Note: There are many other .NET newgroups (use the first three
"fields" from the last two as templates when searching for them),
but the above ones should get you started.

Rick



"cyzpro" <cyz***@discussions.microsoft.com> wrote in message
news:17EAFC45-3AE7-4616-A4CB-71211CA9F8BA@microsoft.com...
> I am new to VB and I am creating a simple calculator for
practice. I am using
> VB .Net
> I want button's background color to change when mouse hover over
it but VB
> keep tell me that Name 'color' is not declared.
> following is the code
>     Private Sub plus_button_MouseHover(ByVal sender As
System.Object, ByVal
Show quoteHide quote
> e As System.EventArgs) Handles plus_button.MouseHover
>         plus_button.BackColor = Color.Blue
>     End Sub