>I would like to have our company logo floating around on my main app screen. Can anyone help with code to randomly but smoothly adjust the left and top properties of the image in a timer control?
>
>Thanks and God Bless,
>S. Dyke
Easy enough. You can have two sets of [top, left] pairs for your logo, the current and the destination. In a timer event, you check if they're equal, and if they're not, adjust the actual ones to come somewhat closer to the destination (which means, move the logo). Once they're close enough (i.e. the distance is smaller than the step), use some random numbers to create a new destination path. You can do it all in timer's .timer event, and it shouldn't be more than a dozen lines of code.