Hey does anyone know how to slide a form up while revealing another form
I basically want form1 to slide up when closed by the user and while the slide transition is taking place i want form2 to Gradually show.
Does anyone know how to achieve the slide up transition in Visual Basic 2010?
Slide effect form in Visual Basic
Page 1 of 14 Replies - 2774 Views - Last Post: 06 February 2012 - 01:44 PM
Replies To: Slide effect form in Visual Basic
#2
Re: Slide effect form in Visual Basic
Posted 06 February 2012 - 04:57 AM
If you mean opacity transition you
can use combination of timer, some loop and opacity property. For the moving transition,use timer, some loop and location property.
can use combination of timer, some loop and opacity property. For the moving transition,use timer, some loop and location property.
#3
Re: Slide effect form in Visual Basic
Posted 06 February 2012 - 07:45 AM
For a slide effect you change/decrement the height property (in your case) and you can use a timer or a Do/Loop.
#4
Re: Slide effect form in Visual Basic
Posted 06 February 2012 - 01:32 PM
#5
Re: Slide effect form in Visual Basic
Posted 06 February 2012 - 01:44 PM
I think I saw another topic with this subject, you might try searching on some keywords here on this site.
It's really nothing more than incrementing a variable and setting that variable to the form.Height property.
By setting a timer on your form and assigning the incremented height there, it will run once after every tick of the timer.
Just be sure to opt out of the timer if the form reaches a certain size or it will keep growing. So you will need to check to see if the height is at or above its maximum size and if so, stop the timer.
Play around with it, present your code when you get stuck.
EDIT:
Oops, sorry, I thought you were talking about growing a form. But then it's the same concept for opacity just a different property to be incremented.
It's really nothing more than incrementing a variable and setting that variable to the form.Height property.
By setting a timer on your form and assigning the incremented height there, it will run once after every tick of the timer.
Just be sure to opt out of the timer if the form reaches a certain size or it will keep growing. So you will need to check to see if the height is at or above its maximum size and if so, stop the timer.
Play around with it, present your code when you get stuck.
EDIT:
Oops, sorry, I thought you were talking about growing a form. But then it's the same concept for opacity just a different property to be incremented.
This post has been edited by CharlieMay: 06 February 2012 - 01:47 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|