Or create a custom control inherited from Windows.Forms.Label that keeps itself at the top of the Z order in its paint event.
Main Topics
Browse All TopicsOk, I am rewriting an old vb6 program. We were using some of those old activex control packages Becubed, crecent, etc...
There is a control that is called the invisible control, what it does is you put it over an existing control Like one of the letters of a label and it sits there invisibly. So what happens is that we have a bunch of spots in our programs where you click on a secret area on the screen and the click event fires for the invisible control. .
So I have developed quite a few of my own custom controls in .Net but can't seem to get it right for this invisible control. All I want it to do is sit anywhere on the form and become click able so that a click event fires when the control is clicked. I do need to control to be transparent so that what ever is behind that control is visible to the user.
I got really close in the way that my control is transparent, but it is not showing what is behind that control "the label" it's actually making that whole part of the form transparent. It's showing what is behind the form. I need it so that I can place it over a small spot on a label so that when you click in the special area the click event fires.
Please any suggestions would be appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Idle_MindPosted on 2009-08-19 at 13:20:41ID: 25136895
(untested)
ntArgs e) {
Try overriding the OnPaintBackground() method so that nothing gets painted:
protected override void OnPaintBackground(PaintEve
// Paint nothing...thus a transparent control?
}