Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transparent Frame

Status
Not open for further replies.

HydraNL

Technical User
May 9, 2005
74
NL
Hi,
I looked around, but I can't find a solution to make my Frames transparent anywhere. Could anyone help me out? Thanks in advanced.
 
Hi HydraNL

Please see thread thread222-84750 for a response to your answer.

Cassandra
 
Thank you CassandraR.

Strange I didn't see that topic yesterday. I searched the forums first. :S

Thank you again.
 
To bad.... It almost works.

Every TextBox gets a transparent border, but the frames do not. I changed the code a little:

In the Form_Load()
SetWindowLong Frame1.hWnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
SetWindowPos Frame1.hWnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, SWP_SHOWME

Can someone help me out?
 
Good luck! VB's frame control is notorious for completely failing to allow transparency (there's some heavy subclassing going on in the ThunderFrame class which means normal techniques such as trying to set WS_EX_TRANSPARENT or setting the background brush to NULL_BRUSH just don't work)
 
ai.... to bad. I found a freeware .OCX. I will try that one out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top