Re: Remove border from popup button More options

Tech-Archive recommends: Speed Up your PC by fixing your registry



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.

.


Quantcast