Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Button Border

0 views
Skip to first unread message

Javad

unread,
Dec 16, 2004, 4:32:58 PM12/16/04
to
How can I ommit the border of a button or change its width?

Thanks
Javad


Norm Cook

unread,
Dec 18, 2004, 12:01:27 PM12/18/04
to
Are you referring to the focus rectangle?
If so, you can use subclassing as shown here
http://www.mvps.org/vbvision/Sample_Projects.htm
See the Remove Focused Rect Demo

Another, simpler (read lazier) method is to set focus to some other control
in the button's click event.

"Javad" <java...@myrealbox.com> wrote in message
news:%23DUDWAG...@TK2MSFTNGP14.phx.gbl...

Randy Birch

unread,
Dec 18, 2004, 12:10:57 PM12/18/04
to
You can't.

--


Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/


"Javad" <java...@myrealbox.com> wrote in message
news:%23DUDWAG...@TK2MSFTNGP14.phx.gbl...

: How can I ommit the border of a button or change its width?
:
: Thanks
: Javad
:
:

Randy Birch

unread,
Dec 18, 2004, 12:13:58 PM12/18/04
to
I suspect he meant flat buttons, not focus-rect-free buttons.

--


Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/


"Norm Cook" <normcoo...@cableone.net> wrote in message
news:eGl8pLS5...@tk2msftngp13.phx.gbl...
: Are you referring to the focus rectangle?

: >
: >
:
:

Javad

unread,
Dec 17, 2004, 7:48:15 PM12/17/04
to
Yes. That's right.
I mean a Flat button, not focus rectangle.
I want my button to be a simple rectangle, but I can't do this.

Thanks
Javad

"Randy Birch" <rgb_rem...@mvps.org> wrote in message
news:u#wI4TS5E...@TK2MSFTNGP14.phx.gbl...

Bob O`Bob

unread,
Dec 20, 2004, 5:18:20 PM12/20/04
to
Javad wrote:

> Yes. That's right.
> I mean a Flat button, not focus rectangle.
> I want my button to be a simple rectangle, but I can't do this.


maybe you can't do it directly.

but you can simulate it by placing the button inside a borderless frame,
with the button larger than the frame so the borders get clipped.


Bob
--

0 new messages