473,327 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Fade or remove the DropShadow

I've created a form and added the following code in the CreateParams property
to display a drop shadow on the form.

protected override CreateParams CreateParams
{
get
{
CreateParams parameters = base.CreateParams;

parameters.ClassStyle = (parameters.ClassStyle | CS_DROPSHADOW);

return parameters;
}
}

I've then added some code to make the form look like it is fading out by
decreasing the forms Opacity property to 0 with a timer. The problem is that
the Shadow doesn't fade and it doesn't look very good.

Is there any way to fade the drop shadow, or anyway to get rid of the drop
shadow after the window has been created?

Thank you for your help
May 25 '07 #1
1 3701
Mark,

There isn't much you can do in this situation. You can't change a
window style once you have created the window, and I imagine that the same
applies for the style of a class of window (which is what you are modifying,
not the window style). The only way to shut it off is if you do it
system-wide, and that's not a good idea either.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mark Collard" <Mark Co*****@discussions.microsoft.comwrote in message
news:3D**********************************@microsof t.com...
I've created a form and added the following code in the CreateParams
property
to display a drop shadow on the form.

protected override CreateParams CreateParams
{
get
{
CreateParams parameters = base.CreateParams;

parameters.ClassStyle = (parameters.ClassStyle | CS_DROPSHADOW);

return parameters;
}
}

I've then added some code to make the form look like it is fading out by
decreasing the forms Opacity property to 0 with a timer. The problem is
that
the Shadow doesn't fade and it doesn't look very good.

Is there any way to fade the drop shadow, or anyway to get rid of the drop
shadow after the window has been created?

Thank you for your help

May 25 '07 #2

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

Similar topics

1
by: Robert Skidmore | last post by:
I am building an application that will fade one panel to another panel. Both panels will have picture boxes in them (thumbnails). This is what I have tried: private void...
1
by: jase_dukerider | last post by:
Hi I have an assignment to hand in shortly for which I am after some guidance. The task is to read a WAV file, request a fade in /out time for the track from the user and the do the fade by...
14
by: Ivan Weiss | last post by:
Hey guys I am trying to fade in a form using the following code: Public Class frmAbout Inherits System.Windows.Forms.Form Dim i As Integer 'Public Variable #Region The Windows Form code...
4
by: Chris Lieb | last post by:
Hi, I am writing a class in JavaScript to cause a repeating fade effect. The fade class takes care of the fading and the rgb class takes care of manipulating rgb values: function rgb(red,...
2
by: Emil | last post by:
Hi, if you open the link below and click on "Show Me" and then "Toggle Transition" Button you will see a wonderfull fade in / fade out transition of 2 pictures. ...
6
by: Jake Barnes | last post by:
Please go look at this page using FireFox: http://www.ralphkrubner.com/Commercial/ Click the "Next" button a few times. The images fade out and then fade in. It's a nice effect. Now do try...
18
by: hopper | last post by:
I am having a memory block today and for the life of me cant seem to get it right. Can someone help me with code to fade text in 8 seconds after the page has loaded. This is what i have but i...
1
by: Peter Bengtsson | last post by:
I love the dropshadow effect I managed to make with this recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474116 Here's what it can look like:...
2
by: oam | last post by:
Hello, I'm testing some HTML using the DropShadow filter, but I find that the border of the object with the shadow gets in the way of content (especially, links). Here is some sample code: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.