Change a Button Color with code

Edoloto

Member
Joined
Sep 20, 2006
Messages
6
Programming Experience
Beginner
Hi everybody,

I'm developing an application that when you click a button, the color of it changes to red. When I used vb6 in the past I wrote a procedure like this:

btnTaxes.BackColor = Vbred

In vb.net is different and it tells me that the "Vbred" has not been not declared.

Also, can someone tell me how can I add a record to a Access database (ADO) ?

Thanks you all,

Eduardo Arias
 
Your first question...

VB.NET:
Button.BackColor = Color.Red

Your second question will depend on your knowledge of ADO.Net. As you are coming from a vb bachground i assume you are unfamiliar with the idea of working in dis-connected mode? ADO.Net differs substantially from ADO so i suggest to do a member search for 'TechGnome' in his signature there is a tutorial on ADO.Net ( 2 parts ) can i suggest you read them both and that should get you started in the right direction.
 
Hey ... thanks

Hey, It worked ... thanks a lot man, I will read the information you about ADO.net ... I trully don't know much of it.

Thanks again
 
I just want you to let you know that I got the articles and they look really well written and clear.

Thanks a lot again,

Eduardo Arias
 
Back
Top