Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: MSN "Nudge" Like effect VB  (Read 3419 times)

0 Members and 1 Guest are viewing this topic.

camerongray

    Topic Starter


    Expert
  • Thanked: 306
    • Yes
    • Cameron Gray - The Random Rambings of a Computer Geek
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Mac OS
MSN "Nudge" Like effect VB
« on: May 25, 2009, 06:17:52 AM »
Is there any piece of code I can add to a command button that causes an effect like the "Nudge" in MSN Messenger. I the code can be either Visual Basic 6 or Visual Basic.Net.

Any help would be appreciated!!!

Thanks in advance,
                          Cameron Gray

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: MSN "Nudge" Like effect VB
« Reply #1 on: May 25, 2009, 11:58:44 AM »
using the Move method of the form one can change the location of the window very quickly. For example, in the command button store the current Left and Top properties, then begin a loop that uses the Move method, the stored values and random numbers to shake the window.
I was trying to dereference Null Pointers before it was cool.