sliding panel

  • Thread starter Thread starter piter
  • Start date Start date
P

piter

Hi
I saw C# application that had sliding panel.. I want my panel to slide in up
direction.
Is there an efficient way to do this?
I thought that i can use Timer and change height , but iam not sure if this
would be an efficient and common way.
Thanks
PK
 
PK,

That's really the only way you can do it using Windows Forms. You have
to set up a timer and then adjust the control on timed intervals.

With Windows Presentation Foundation, you can use an animation timeline,
but if your project isn't WPF to begin with, it might be too much to
integrate for the one control.

Hope this helps.
 
I also thought that i can create second form and use API to slide it. Then
this form should be somehow embedded in main form.
 
No, that's not going to work. Having a form embedded in another form
isn't really the way to go about it. You should stick with the timer and
the panel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top