Solved

Command Button Tranparency ?

Posted on 1998-06-28
8
203 Views
Last Modified: 2010-05-03
Can VB set it command button picture's background to tranparent ?
How ?
 
0
Comment
Question by:netcool
  • 4
  • 2
  • 2
8 Comments
 
LVL 1

Expert Comment

by:khaledc
ID: 1464483
Some controls have a Background color property. This property can be set to Transparent or opaque (the value 0 or 1). label control is a good example.
However, such property is not available for a command button (don't know why?), therefore it is impossible to make a command button transparent. The best you can do with a command button is to insert an icon on it.
Hope this answered your question
0
 
LVL 1

Accepted Solution

by:
khaledc earned 50 total points
ID: 1464484
Can you at least mention why the answer was rejected.
0
 
LVL 5

Author Comment

by:netcool
ID: 1464485
khaledc,

By inserting  the icon on it does not help me because i want the picture itself become as
a button with no border or anything for example a basketball picture , i want just the ball
shown on the form and without any frame around the button.....

Thank you for your input.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
LVL 7

Expert Comment

by:kamall
ID: 1464486
netcool,
This can be done using the image control with a *.WMF picture. There are some WMF pictures under the VB graphics\metafile directory. You can try one and see.
The image control has a click event, and hence can be used as a button.
If this helps you, please unlock the question to give me the credit.

Regards
0
 
LVL 5

Author Comment

by:netcool
ID: 1464487
Khaledc,

Actually your method also working to get the result i want but my program has to use
bmp files format for button pictures becuase it is the standards set by our companyfor all our program ..so ico picture doesn't help me in this case. Anyway i learn new thing from
you. Thank you.
0
 
LVL 5

Author Comment

by:netcool
ID: 1464488
Khaledc,

Actually your method also working to get the result i want but my program has to use
bmp files format for button pictures becuase it is the standards set by our companyfor all our program ..so ico picture doesn't help me in this case. Anyway i learn new thing from
you. Thank you.

netcool
0
 
LVL 5

Author Comment

by:netcool
ID: 1464489
kamall, i how do i give point to you for your answer ???
I have tried you method it also working ....it is just we have to convert all our bmp files to
WMF format in order to use you method. So , i think some credit should be given to u.
Thank you.
0
 
LVL 7

Expert Comment

by:kamall
ID: 1464490
netcool,
To be able to give me the points, you should have rejected the proposed answer to unlock the question and enable me to lock it, answer it, and get the credit.
Anyway, if you like to give me the points, you can ask another question with title "To kamall..." and write "These are your points for your answer for the Command Button Tranparency question". I can then lock the question and get the points.

Regards
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 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