?
Solved

VB Command Buttons

Posted on 2003-03-19
6
Medium Priority
?
184 Views
Last Modified: 2010-05-01
Is there a way to change the color of a command button in Visual Basic?
0
Comment
Question by:andrew12279
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Accepted Solution

by:
RanaHossain earned 160 total points
ID: 8171397
not far as I am aware, but yu can use this excellent code

http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=37471&lngWId=1

its the great CHAMELEON BUTTON
0
 
LVL 1

Assisted Solution

by:HenryChanE
HenryChanE earned 160 total points
ID: 8171435
1) Change the "style" property to "graphical"
2) Select your desire color in "backcolor" property

Is this what you want?

Henry
0
 

Author Comment

by:andrew12279
ID: 8171443
Yeah, thanks a bunch.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:coreytheBMXprogrammer
ID: 8178948
can you change the border of the command button from the default color too? I have trouble with it only changing the face of it.
0
 

Expert Comment

by:CleanupPing
ID: 8531960
Hi andrew12279,
This old question (QID 20556894) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 8957384
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-->Split between HenryChanE and RanaHossain

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

GPrentice00
EE Cleanup Volunteer
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question