Re: Remove border from popup button More options
- From: "ClayB" <clayb@xxxxxxxxxxxxxx>
- Date: 7 Mar 2007 10:29:15 -0800
I may be missing the point of your question but if you do not want to
see a border until you move the mouse over the button, you might try
using a panel instead of a button. You could start out with no border
and then show/hide the border in the panel's MouseEnter and MouseLeave
events.
this.panel1.BorderStyle = BorderStyle.None;
this.panel1.MouseEnter += new
EventHandler(panel1_MouseEnter);
this.panel1.MouseLeave += new
EventHandler(panel1_MouseLeave);
void panel1_MouseLeave(object sender, EventArgs e)
{
this.panel1.BorderStyle = BorderStyle.None;
}
void panel1_MouseEnter(object sender, EventArgs e)
{
this.panel1.BorderStyle = BorderStyle.Fixed3D;
}
====================
Clay Burch
Syncfusion, Inc.
.
- Follow-Ups:
- Re: Remove border from popup button More options
- From: Eran . Yasso
- Re: Remove border from popup button More options
- References:
- Remove border from popup button More options
- From: Eran . Yasso
- Remove border from popup button More options
- Prev by Date: Remove border from popup button More options
- Next by Date: Re: Remove border from popup button More options
- Previous by thread: Remove border from popup button More options
- Next by thread: Re: Remove border from popup button More options
- Index(es):