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

.NET 

[VB.NET]Shaking Form[TUT]

This is a pretty fun little Shake thing you got there. I made it into C# and modded it a little bit.

Here is what I made:
Code
Random n = new Random();
    int a = n.Next(0, 50);
    int b = n.Next(0, 50);
    for (int i = 0; i < 100; i++)
    {
    a = n.Next(0, 50);
    b = n.Next(0, 50);
    this.Location = new Point(this.Location.X + a, this.Location.Y + b);
    System.Threading.Thread.Sleep(50);
    this.Location = new Point(this.Location.X - a, this.Location.Y - b);
    System.Threading.Thread.Sleep(50);
    }

Shakes in pretty much all directions ;)
Thank you verry much ^^

TOO SHORT DAMNIT!
Nice.. Its all looking good I see!
good source code,nice tutorial guys😉

[IMG]http://i305.photobucket.com/albums/nn217/mage619/GFX/Punk.jpg[/IMG]
thanks for the share im goin to try it out
Nice ! Works fine for me ! Thank you :)
great dude thanks ill use this in my other forum
thanks for this i will try this
Thanks!! It's working great for me!
Thanks, I tried it, works great :)
Very nice Tut, thanks mate.
If you want to have like WLM Wizz edit your code :

Code
Me.Location = New Point(Me.Location.X + 20, Me.Location.Y)
by
Code
Me.Location = New Point(Me.Location.X + 5, Me.Location.Y + 8)

and

Code
Me.Location = New Point(Me.Location.X - 20, Me.Location.Y)
by
Code
Me.Location = New Point(Me.Location.X - 5, Me.Location.Y - 8)

and thank's for you tut :p
WOW
What a great Idea
I think it will work and i gona try it now
(Sep 3, 2011 09:02 AM)Yosaki Wrote:  WOW
What a great Idea
I think it will work and i gona try it now

Mate, stop posting shit to get your post count up.
And stop gravedigging.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Ðr1psNov 9, 2015 03:56 PM 19 416 Nov 9, 2015 03:56 PM
Last Post: Ðr1ps
[.NET] by WildElephantApr 21, 2015 10:48 AM 7 181 Apr 21, 2015 10:48 AM
Last Post: nuk
[C#] by ShedletskyJan 4, 2015 04:26 PM 6 233 Jan 4, 2015 04:26 PM
Last Post: Shedletsky