![]() |
Ha! It slides into eternity!
I have a context menu on my tray icon with the words show and hide depending upon where the form is it will either show or hide the form by sliding it by the system tray.
Below is code I have so far it didn't work but I made an attempt. It just slides and never stops I believe. How do I accomplish this task. Thank you :
Dim workingArea As Rectangle = Screen.PrimaryScreen.WorkingArea |
here is what's happening, you fire off your timer, instantly the value of i reaches 64 in the timer tick handler. after that completes it continues on the following line where you have a "<=" the equals part of this is satisfied because the value is 64. since you never increment anymore at this point you have what is known as a "forever loop" and it just keeps right on going lol.
|
| All times are GMT -5. The time now is 1:03 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC