Hi, I m new to the VB.
Can u pls tell me how to change the backColor Of CommandButton
I try,
command1.backcolor=blue

Recommended Answers

All 5 Replies

what version of vb that u using??
i guest you use vb6. if this right you post thread on wrong section, this section for vb.net you can post thread on vb 6 section but i still answer this thread...

first you must change button style on button properties from Standard to Graphical.
Style = Graphical
after that you can change back color of command button.
use this code to change color at runtime.

Command1.BackColor = vbBlue

Ok,thx for the reply. Actually i m new to this site,dats y ..sorry

its ok friend.
are your question already solved?

Ya, mine question is solved...

ok. happy coding friend :)
dont forget to mark this thread solved :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.