Solved

Command Button Tranparency ?

Posted on 1998-06-28
8
200 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
Comment Utility
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
Comment Utility
Can you at least mention why the answer was rejected.
0
 
LVL 5

Author Comment

by:netcool
Comment Utility
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
 
LVL 7

Expert Comment

by:kamall
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 5

Author Comment

by:netcool
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now