0

Greetings fellow developers i just want to ask for help on how to slide the panel from right to left of the screen. I only know the sliding panel from left-to-right but is it possible to slide the panel from right-to-left?

3
Contributors
5
Replies
17
Views
3 Years
Discussion Span
Last Post by Jake.20
Featured Replies
  • If you are only wanting to increase the width (on the left) you will have to reposition the panel on resize to give the user the illusion it is only increasing the width on the left. For exmaple: Do While Panel1.Width < 730 Panel1>Width += 1 Panel1.Location = New Point(Panel1.Location.X … Read More

  • You might want to consider a further check that X doesn't go less than zero. Something like: Do While Panel1.Width < 730 andalso Panel1.Location.X > 0 Read More

0

In the parent control. like this for example

private slide_in()
do while panel1.width < 730
panel1.width += 1
loop

like this code but it only grows it's width from left-

1

If you are only wanting to increase the width (on the left) you will have to reposition the panel on resize to give the user the illusion it is only increasing the width on the left.

For exmaple:

Do While Panel1.Width < 730
    Panel1>Width += 1
    Panel1.Location = New Point(Panel1.Location.X - 1, Panel1>Location.Y)
Loop
2

You might want to consider a further check that X doesn't go less than zero. Something like:

Do While Panel1.Width < 730 andalso Panel1.Location.X > 0
Comments
Very true! :)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.