Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2005

Tip: Looking for answers? Try searching our database.

How to create a Transparent Window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sebastien Girard - 11 Feb 2005 16:02 GMT
Hello,

I am using the IE WebBrowser (shdocvw.dll)  inside my form and use it to
display an HTML background in my form.  I also want to capture mouse events
that occur on the browser (Mouse Down). To do so, my class implements
IMessageFilter to pre filter messages and do special stuff on Mouse Down
events on the browser. My problem lies in the fact that I can't get the
Handle of the browser, therefore I can't tell whether the mouse events
occurred in the browser window or anywhere else...

Since I can't find any answer on how to get the Handle of the WebBrowser
Control I was thinking of creating a dummy/invisible window over the browser
that would capture mouse events but would not hide the Browser...

If you have any idea on getting the Handle of the WebBrowser Control or on
How to create a transparent Window over my Browser, please let me know.

Thanks
Bob Powell [MVP] - 11 Feb 2005 17:02 GMT
As soon as a window becomes transparent it stops getting the mouse input so
that won't work either.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Hello,
>
[quoted text clipped - 14 lines]
>
> Thanks
Sebastien Girard - 12 Feb 2005 23:26 GMT
OK thanks for the head's up, I won't go in that direction...

Do you have any suggestion has to how I can solve my problem?
Robbe Morris - 13 Feb 2005 02:50 GMT
Not 100% clear on your issue.  But this sample discusses
capturing mouse clicks on transparent forms and passing
them throw to the desktop for instances where a user
wants to double click a desktop icon but the form
is on top of it.

http://www.eggheadcafe.com/articles/transparentform_send_mouse_click_to_desktop.asp

Signature

2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.mastervb.net/home/ng/forumvbcode/post10017013.aspx

> Hello,
>
[quoted text clipped - 14 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.