[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9495
  • Last Modified:

Image transparent buttons windows forms c#

Hi,

I have windows form application c# 2.0, and i want to add new buttons that have images and i want the button to be displayed as transparent so the images will be only displayed for the user to click on? anybody know any good sample of doing so?

Thanks,
0
Abu Hamdan
Asked:
Abu Hamdan
  • 4
  • 3
1 Solution
 
Mihai StancescuSoftware Engineer Commented:
You can try adding just PictureBox controls and set the Click event...


Regards,
Mishu
0
 
Abu HamdanEnterprise Architect, PM ExpertAuthor Commented:
JackOfPH,

The sample you have provided dont take images as property for the button,, its just displaying arrows!
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Abu HamdanEnterprise Architect, PM ExpertAuthor Commented:
Mishu,,

If i added picture box the UI wont behave as regular buttons,,, hover when clicked ..etc
0
 
Mihai StancescuSoftware Engineer Commented:
0
 
Abu HamdanEnterprise Architect, PM ExpertAuthor Commented:
According to your provided sample,, the image button still display the button edges,, means the button still not transparent,,, also i have seen this sample before,, along with all code project samples that talk on same subject :)
0
 
Mihai StancescuSoftware Engineer Commented:
So you want a "button" that doesn't look like the xp button but acts like one?

You can try this :
1. Add a PictureBox, set the image to you default button aparence;
2. Add on Leave, and Enter Mouse events, on Leave set the image to the original state and on enter the hover image;
3. Add on click the stuff you want the button to do.

This will not be entirely like the XP button, but I think will suite your needs for an image button.

Hope this helps!

Regards,
Mishu
0
 
Abu HamdanEnterprise Architect, PM ExpertAuthor Commented:
Yes i think i have to go with this solution and create it myself!

Thanks Mishu ,, elaak
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now