Solved

Command Button Tranparency ?

Posted on 1998-06-28
8
202 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

775 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