Doesn't work
I really need to include
SetStyle(ControlStyles.UserPaint,True);
And I won't because now i have to remake the entire control
the only thing i want is make a bevel effect when my mouse passing over the control
I think this is the problem with the TextBox control (you can't)
any...
use the try,catch,finally statement like this
try
{
the code you want to execute
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
finally
{
destruction of the object variables that you don't need
}
Thanks for the suggestion, but it's doesn't work :(
anyway if u try the code I gave you will see that the TextBox won't change anything when you are passing on and out of it. I have to :
SetStyles(ControlStyles.UserPaint,true);
and then now it's very weird for me.
if u want to understand me...
Hi,
I'm trying to make a little plus to the TextBox Control.
I want to make the TextBox Raised when the mouse is hover and and Flat when leave. That part works fine for me but the problem is that I got the text to disappear each time I'm leaving or entering the control.
BTW can someone point...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.