TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Manuela Schwark
NA
1
0
Controls disappear after tabbing through
Oct 2 2006 4:15 PM
Hello,
I have a transparent UserControl
I got that with this code:
Constructor:
SetStyle(ControlStyles.Opaque,
true
);
SetStyle(ControlStyles.UserPaint,
true
);
SetStyle(ControlStyles.AllPaintingInWmPaint,
true
);
SetStyle(ControlStyles.SupportsTransparentBackColor,
true
);
BackColor = Color.FromArgb(0, 0, 0, 0);
protected
override
CreateParams CreateParams
{
get
{
CreateParams cp =
base
.CreateParams;
cp.ExStyle |= 0x00000020;
return
cp;
}
}
)
The transparency works great but now the controls (Textboxes and Grid) on the usercontrol disappear. Each one is gone after I tab off of it. They will come back when I move the mouse over them (For the Grid, each cell comes back single) What's happening?
lionee
Reply
Answers (
0
)
Change pixelvalues
Problem using GDI+ to add drawings & text from SQL tables