| | |
Animated control movement.
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
I have a transparent panel control, I don't use double buffering because they clash, and it also interferes with some other controls that I am using. On my panel I have 9 buttons, I have written code to remove a button on its click event, and then move the to the right of the removed buttons all to the left to take the place of the removed button via a slide in animation style movement. I wrote a class that takes the end position, the start position and the amount of steps and moves the buttons using a timer, so to allow the program to handle all its events. I call refresh()in the tick as well on the panel and It works fine except it looks kinda bad, jittery kinda, just doesn't look smooth. Im using a stout machine so I know its not my ability to process it.
It there some standard to doing this kind of thing, would I get best results calling refresh on the panel, or the entire form? I have tried both, and it appears the same to me. But I'm not sure what programmatically yields less work on the system with the desired result.
some other stuff to take into consideration,
the form is actually 2 forms, one that is a layeredwindow for crisp transparent edges, the other, my actual form for holding controls. all the button controls contain images and text and are flat style. the form contains a gradient background image and multiple instance of forced transparent controls such as panels and labels.
any suggestions would be appreciated.
It there some standard to doing this kind of thing, would I get best results calling refresh on the panel, or the entire form? I have tried both, and it appears the same to me. But I'm not sure what programmatically yields less work on the system with the desired result.
some other stuff to take into consideration,
the form is actually 2 forms, one that is a layeredwindow for crisp transparent edges, the other, my actual form for holding controls. all the button controls contain images and text and are flat style. the form contains a gradient background image and multiple instance of forced transparent controls such as panels and labels.
any suggestions would be appreciated.
![]() |
Similar Threads
- urgent !!! (Java)
- Timer control (VB.NET)
- Tab control (C#)
- the computer freezes up or not letting me control (Viruses, Spyware and other Nasties)
- Spiderman 3 - post your opinions (Geeks' Lounge)
- images no longer animated (Web Browsers)
Other Threads in the C# Forum
- Previous Thread: Group Binding to a Gridview
- Next Thread: windows installer user interface checkbox to disable next button
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication concurrency control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml






