Hey all,
I have a shaped form that I'm opening from within my main form. I'd like the form to automatically be opaque, when the mouse leaves the bounds of the form so that the user can look under it. Here's the simple code so far...
I'm happy to see that setting the opacity of the form also sets the opaticy of the child controls, but....
The only issue I'm finding is that the MouseEnter only works if I'm hovering directly on the form with no other controls in the way. (ie. If I have a GroupBox on the form, it doesn't work, nor does it work if I hover over the titlebar.
Is there a different Event that I should be using or, should I be looking for something like the "NotifyParentOnMouseInput" property that I've seen on some Rad Controls, but I haven't seen those for the controls I'm using. (RadGroupBox, RadTextBox, etc.)
Thanks for your help!!
Rob.
I have a shaped form that I'm opening from within my main form. I'd like the form to automatically be opaque, when the mouse leaves the bounds of the form so that the user can look under it. Here's the simple code so far...
public myShapedForm()
{
InitializeComponent();
this.Opacity = .5;
}
private void myShapedForm_MouseEnter(object sender, EventArgs e)
{
this.Opacity = 1;
}
private void myShapedForm_MouseLeave(object sender, EventArgs e)
{
this.Opacity = .5;
}
I'm happy to see that setting the opacity of the form also sets the opaticy of the child controls, but....
The only issue I'm finding is that the MouseEnter only works if I'm hovering directly on the form with no other controls in the way. (ie. If I have a GroupBox on the form, it doesn't work, nor does it work if I hover over the titlebar.
Is there a different Event that I should be using or, should I be looking for something like the "NotifyParentOnMouseInput" property that I've seen on some Rad Controls, but I haven't seen those for the controls I'm using. (RadGroupBox, RadTextBox, etc.)
Thanks for your help!!
Rob.