473,783 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Translucent Forms with PNGs (updated request)

I am attempting to make a form which has alpha transparency that
varies across the from, similar to launchy:
http://www.launchy.net/images/screenshot_sheep.jpg

After a few different approaches, I have ended up overriding the
OnPaint method and using Graphics.CopyFr omScreen and then painting the
transparent PNG on top of this using DrawImage. I have so far being
able to get the same effect when stationary, but there are 2 issues:

(1) As you drag the form, there is a slight delay between the form
being moved and the background being drawn. With launchy, the effect
is fluid and there is no delay.

(2) If the content behind the form changes it doesn't show. Is there
any way to trigger a repaint when any forms behind my form change?

Any help please? I have had a look at the 'Vista' form on CodeProject,
which appears to be ideal - but I don't know C# and don't have a
compiler to see if the effect is infact what I would like to achieve.

Feb 17 '07 #1
0 934

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
5767
by: Shaine Fisher | last post by:
I have had a look around but I'm either not finding or not seeing the answer to this, what i want to do is reurn the results as an array, or some other worldly useful format that flash mx2004 can read. But when I did thiss I was told datasets were the way to go, but needs an array, prefer typed as were changing it. Here is the current code: (shortened for readability) public class WebService1{
2
2116
by: Rutko | last post by:
Hi Could I somehow make an MDI Child form in .NET but to have it displayed as child in another application. I'll try to elaborate. I have application in Visual FoxPro. In C# I made a little class and use it over COM Interop in VFP. Here is the example in C#..... using System;
7
3336
by: Lloyd Dupont | last post by:
In my C# & MC++ app there is some drawing done through GDI (not +, but win32). I would like to be able to create a translucent HBRUSH. the RGB macro create only solid color... and, anyway, CreateSolidBrush ignore the higher byte. Any idea? I though I might do some trick with CreateDIBPatternBrush but I'm not sure
0
1005
by: Nick | last post by:
I have two seperated asp.net projects - project1 (\inetpub\wwwroot\project1) and subproject (\inetpub\wwwroot\project1\subproject). They share authenticating code in \inetpub\wwwroot\project1\global.asax.vb. and using "Forms", however, the request.isauthenticated always turns to false after authenticated in project1 and redirecting url from http://localhost/project1/*.aspx to http://localhost/project1/subproject/*.aspx.
0
7091
by: anuj13singhal | last post by:
Hi, I am trying to open a word document on the client machine. the document is present on the oracle application server (on windows). For that I have created a java class file wordbean.class. (Source code below) package oracle.forms.demos.ole; import com.jacob.activeX.ActiveXComponent; import java.awt.Panel; import com.jacob.com.*;
1
1185
by: waynes | last post by:
Hello group, first time here. I have question regarding reading form post variables. I have a forms processor that dynamically reads a form, for example: For x = 1 To Request.Form.count() item = Request.Form.key(x) rstData = Request.Form.item(x) ..... adds item & rstdata to a list ..... Next
3
1770
by: jarnie | last post by:
I am attempting to make a form which has alpha transparency that varies across the form, similar to the Adobe splash screens and launchy: http://www.launchy.net/images/screenshot_sheep.jpg After a few different approaches, I have ended up overriding the OnPaint method and using Graphics.CopyFromScreen and then painting the transparent PNG on top of this using DrawImage. I have so far been able to get the same effect when stationary, but...
0
2558
by: tristanlbailey | last post by:
I have been attempting to solve this problem for a few weeks now, but I'm not having much luck... I would like to create a seamless fading effect on each form/window in my program; one that, when an image is clicked with a mouse and held, the window fades away by approximately 50% transparency, and when the mouse button is released, fades back to opaque. I have been able to do this to an extent, with the SetLayeredWindowAttributes...
3
5014
by: Sin Jeong-hun | last post by:
As far as I know if I change the form's opacity, every control on the form also inherits that opacity. But in many real applications (not application programs), we see opaque text (100% opacity) on a traslucent background, for example text messages on TV. Or look at the title bar text of Aero. Background is translucent but the text is opaque. Is it possible to use 100% opaque text on a traslucent form?
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.