First Off, I would just like to say Hello! to the C# forum, I have recently started my MCP In Developing Windows Apps in C# (working towards MCAD) so I thought I will try and get involved in this forum as well as the Office Development forum that I normally lurk around in. So Hello!
I have recently got on to visual inheritance, which seems like it could be very powerful and useful in terms of producing a "standard" interface for an application. So I thought, "how could I use this to make an app a little more interesting?"..
So I thought, "how about a form that fades in and out on open/close?" seems like a great idea to me! So I started putting some code together, I have the form fading in nicely on open, by simple calling the fade code from its constructor.. Its the close that is causing me the problem!
Apologies, I cant post my current code as I am at work and stupid me didnt bring it in, but I have looked on the net, and all the suggestions/ideas seems to indicate that a fade out is only possible via multithreading.. is this the case?
Just wondered if anyone else had any ideas/facts on the issue.
I tried to do it using a loop and Application.DoEvents, the timer event seems to be firing in this loop, but much slower, and the form is not being repainted. I added a forced repaint, then it just flickered and looked awful!!
All comments and suggestions gratefully recieved!
Rob
The Developing Developer
Currently Working Towards:
MCAD C#
My Blog: http://www.robzyc.spaces.live.com
<center>
"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".
Thomas Jefferson</center>