3
Answers

Trying to hide the "border" of a Win Button control.

Photo of jose.acidrain

jose.acidrain

21y
2.6k
1
Hia! I need to hide the border of a win button keeping at the same time the text of it. I think that the best way to solve my problem is to asign the Form´s back color to the button´s border color but there is the problem: :( It´s possible to change the border color of a Win Button without changing at the same time the color of the text shown? By now, i´ve only found 2 variables to manage that stuff (ForeColor & BackColor). Unfortenately the ForeColor manage both the text and the border of the control. Can somebody help me? Thanx in advance.

Answers (3)

0
Photo of mohdali81comp
NA 56 0 20y
Hi I have an easier way of doing it if need to get rid of the borders this bad simply replace your button with a label labels also have _OnClick events and you can also the label's Background to Transperant i hope you find this easy and faster as much as efficient
0
Photo of jose.acidrain
NA 7 0 21y
I gonna try this, cheers!
0
Photo of james
NA 1.1k 313k 21y
You could create a custom control and inherit from Button, then override the paint events and do whatever kind of drawing you want on it.