Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Need Help With Dot Net Transition

I Wanna Do A BackColor Transition Of 3 Color Color.Red, Color.LimeGreen, Color.Aquamarine... And A Time Delay Of 0.5 Sec.. So I Did This...

Transition.run(this,"BackColor", Color.Red, new TransitionType_Linear(500));
Thread.Sleep(500);
Transition.run(this,"BackColor", Color.LimeGreen, new TransitionType_Linear(500));
Thread.Sleep(500);
Transition.run(this,"BackColor", Color.Aquamarine, new TransitionType_Linear(500));
Thread.Sleep(500);

But The Thread.Sleep Doesn't Work... Don't Know Why.. Please Help Me....
Maybe a stupid question (sure...🤣). What the hell is Transition.run()?

I'm really sure this is not part from 'standard' .NET Framework and maybe is something you found somewhere
(Mar 7, 2017 02:32 PM)Zilog80 Wrote:  Maybe a stupid question (sure...🤣). What the hell is Transition.run()?

I'm really sure this is not part from 'standard' .NET Framework and maybe is something you found somewhere

Ehhhh...what he said. never in my time of .net have i seen such method. ❓
I dont know anything about the transition library, but I assume the thread.sleep "doesn't work" is because the transitions run on a different thread.

With a very quick look though the code, it looks like you can queue transitions something like this:
https://github.com/UweKeim/dot-net-trans...ion.cs#L79
Lotta blood to let, peace to make, give a fuk about a check
If the naming conventions and in consistencies isn't a dead give away that it's not part of the standard .net library then I don't know what will.
There is a method to queue them but I say make ur own it's too messy.
(Mar 11, 2017 12:58 AM)Visual Freedom Wrote:  Why should this cause problems?

I have no idea what you are asking.
Lotta blood to let, peace to make, give a fuk about a check
(Mar 11, 2017 12:58 AM)Visual Freedom Wrote:  Why should this cause problems?

It would block the UI thread, thus failing to create the 'transition' effect that the OP wanted.
[Image: PVoDiqS.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by BarretSep 10, 2017 01:05 PM 16 904 Sep 10, 2017 01:05 PM
Last Post: Tsukiri
[Python] by obbyMar 8, 2017 07:36 AM 1 239 Mar 8, 2017 07:36 AM
Last Post: Davian
[Java] by FeanorDec 7, 2015 01:09 AM 9 261 Dec 7, 2015 01:09 AM
Last Post: Kyriall