Quick Search for:  in language:    
Code,shows,make,real,transparent,forms,withou
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,149,602. lines
 Jobs: 144. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
 
PDC 2003: Make the connection
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!HistoryWriter Add-In V.1
By Zvonko Kostovski on 9/3

(Screen Shot)

Click here to see a screenshot of this code!Control Winamp
By Dennis Wollentin on 9/3

(Screen Shot)

Fake Virus Version 1.0
By C.J. Laing on 9/3


][String Encoder
By Andron Smth on 9/3


Font Catalog
By Bill Adams on 9/3


professional search
By Ziad Said on 9/3


Click here to see a screenshot of this code!Drew's Meta Tag Generator
By Drew Phillips on 9/3

(Screen Shot)

Fast BruteForce Class
By §e7eN on 9/3


Click here to see a screenshot of this code!Lotus Domino Exploit Scanner
By §e7eN on 9/3

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

REAL Translucent Form, Flickerless & AutoUpdating

Print
Email
 
winzip icon
Submitted on: 3/3/2001 11:27:11 PM
By: Florian Egel  
Level: Intermediate
User Rating: By 23 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 17843 times.
 

(About the author)
 
     This Code shows <br>how to make real transparent forms without needing Win98 or W2k; it does not flicker and it automatically updates while moving. Even the Buttons are translucent! This code is another good example how to use my FoxCBmp3.dll, too, furthermore it demonstrates an alternative way to create cool effects with Buttons (like graphics, transparency, mask...)

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

'**************************************
'Windows API/Global Declarations for :RE
'     AL Translucent Form, Flickerless & AutoU
'     pdating
'**************************************
FoxAlphaBlend
BitBlt
GetDesktopWindow
GetDC
ReleaseDC
Sleep
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
3/3/2001 11:44:52 PM:Rad-X
Looks good, thanks for the screenshot, 
my mum was watching me when i loaded 
the page, lol.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/4/2001 1:01:32 AM:Florian Egel
Sorry Dude, I was tired and that was 
the first picture i found on my 
HD...
;-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/4/2001 4:32:52 AM:GKenny
Looks good, but the screenshot of my 
mum must go. ;-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/4/2001 8:17:20 AM:Florian Egel
??? Great, I didn't know I have a 
brother... ;-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/4/2001 9:14:20 AM:^DaRk^
exellent!this is definatively the best 
example i've seen so far to make a form 
translucent.. thx for sharing it :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/5/2001 11:10:27 AM:Clint LaFever
Nice functionality.  Just wanted to 
comment however that there is a reason 
EXE's are stripped from .ZIP files when 
posting and I find it very rude that 
you decided to rename your EXE to a 
.EXE_ to force it to stay.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/5/2001 12:00:26 PM:Florian Egel
Generally you are right, i just decided 
to provide the .exe because the code 
often leaves ghosts on the screen when 
you run it in the IDE, so you have to 
either compile it or run the provided 
exe. that's why.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/6/2001 12:54:12 AM:kutsal baser
it seems GREAT !
but how to set the 
level of the transparency ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/6/2001 6:23:31 AM:Florian Egel
there are 2 calls of FoxAlphaBlend, one 
in Sub Update and one in Sub 
Picture1_MouseMove. one of the last 
parameters is 128, change this value (0 
is invisible, 255 is opaque) but NOTE: 
the values 64, 128, 192, 255 are MUCH 
faster than the others, maybe 2 times 
as fast! but play with the value to see 
yourself.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/6/2001 7:46:27 PM:Sabertooth
Hey Flo,
this code is as excellent as 
all your submissions! the first really 
working translucent form, and your 
Advanced Graphics Routines are awesome, 
when I see your code I feel like a tiny 
beginner even though I am twice as 
old...
Once again, great work, 5 
globes from me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/12/2001 12:19:27 PM:Kosh
You clearly have a solid grasp of 
graphic functions and the Win32 API. My 
hat goes off to you. Where did you 
learn to do magic like this?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/4/2001 7:52:52 PM:MarkS
Magic!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/6/2001 10:29:51 AM:TM from CR
As I set in other submission
We need 
more people like 
Florian!
Sharing 
the knowledge to 
everyone (open 
source)!
Learning from 
the best to 
do the best...
Thank you 
and keep 
working
-TM
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/10/2001 11:11:29 PM:agent153
Pretty cool. I like it a lot. I've been 
wondering how fesable it would be to 
'move' the desktop image around the 
form as the form was moved. My AMD-k6 
333 is not quite fast enough to run 
this at a decent speed though.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/13/2001 2:48:34 AM:Pure
No source for the DLL.. thats the whole 
code.. I mean Jesus.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/13/2001 5:03:32 PM:Chris
The source of FoxAlphaBlend would be 
much more helpful. I haven't looked at 
the code in the project yet, but from 
what I can tell, almost all the work is 
done in the DLL function(s). Even so, 
it is an excellent example.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/18/2001 11:12:55 PM:Florian Egel
Sure the source is in the dll, that's 
what it is about. You can get the 
dll-source at my other postings
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/20/2001 8:36:49 AM:Mike
Excellent Work!  When I tried my own 
bmp, the minimize and exit images 
disappeared.  How could one fix that?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/9/2001 2:19:30 PM:Mark Hunter
Fantastic!  5 Stars.
Just one 
question.  I tried setting the ALWAYS 
ON TOP flag using SetWindowPos, but 
when Windows under this one change 
(move, etc.), the Window won't 
update.
Other than that, there is no 
difference between this and the Win2K 
Alpha blending.
Any idea what 
Windows message or other technique 
could be used to update the window when 
others windows under it change?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/10/2001 12:11:46 PM:ken
ive tried to understand the coding but 
i dont understand why there are 3 
picture boxes???
why are tehre 3 in 
the example... what are they used 
for??
thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/27/2001 9:36:37 AM:SPeedracer
Great code.
Do you know of anyway to 
make a whole form translucent? or 
another program? and still allow all 
the buttons and thingsto work?
thanks 
alot.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/29/2002 1:28:51 PM:Metasoft
haha that button at the bottom of the 
form is from diablo 2, huh? thanks-i 
really needed that dll.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/27/2002 4:57:08 PM:subhra
could not download the translucent from 
code for any machine.please rectify 
soon
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/17/2002 12:37:09 PM:Fred Ochoa
This is truly the "best" one I have 
seen on this site, and I have "tested" 
about ten similiar ones on this site. 
WOW!!!
I Just have two questions 
Florian. Can you also make a 
semi-transparent picturebox with your 
dll.
I put the semi transparent form 
on top of the mediaplayer control but I 
guess the running video just flickers 
to fast for the form to be 
semi-transparent over the video???
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/15/2003 4:22:33 PM:Jonathan Chappell
Wow! I've been looking for something 
like this for ages. Most other ones 
require XP / 2000.
5 globes from me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.