I would like some help on creating shaped command buttons?
Thanks
Amitabh
Printable View
I would like some help on creating shaped command buttons?
Thanks
Amitabh
When you set the style propertie of the command button on 1 and insert a picture, there will be a picture on the commandbutton
WP
You could download the transparent picturebox control from my homepage, you just need to draw the different states (mouse down, mouseup and mouseover) and then choose a maskcolor for the transparent areas
or just do a walk around
Open some paint programa and make a picture with let's
say for simplicity sake a white background. Put an image control on your form and set it's border to nothing. Use white as your form's backcolor. Put your code in the click
event and you have any shape your can make as a command button. Obviously it takes up a little more space as pictures are square but the appearance is that of any shape as the backgrounds are similar.
Wayne
Yeah, that's another way you could do it, but when you click outside the shape, but still inside the rect, the button is, you'll click the button.
By cutting out the regions which is the areas with the specified color, the maskcolor, you won't hit the button, but instead rise the click event on the form