answersLogoWhite

0

One way to create animated controls is to have a Thread that repeatedly calls the Invalidate() method on the control.

This thread can be privately managed within the control itself; Start it on the HandleCreated event and stop it on the HandleDestroyed event. Remember to put a Sleep delay in the thread loop to let the processor do other things during the animation.

For custom controls, update the control's appearance in the Paint() method. (Paint will be called by Invalidate).

In the control's constructor, add the line

SetStyle (ControlStyles.OptimizedDoubleBuffer, true);

This will prevent the control from erasing during the paint operation, which will minimize flashing.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you create a straight line that slopes up on a position-time graph?

A straight line with a positive slope on a position-time graph is the graph of an object that's moving in a straight line with constant speed.


The distance-time graph for a faster moving object has a smaller slope than the graph for a slower moving object True or false?

The distance time graph for a faster moving object has a smaller slope than the graph for a slower moving object - This is False


The distance time graph for a faster moving object has a smaller slope than the graph for a slower moving object True or false?

False. The slope of the distance-time graph represents the speed of the object. A steeper slope indicates a faster speed, so the distance-time graph for a faster moving object would have a greater slope than the graph for a slower moving object.


How do you create an graph?

You can use the 'create graph' tool on Microsft Exel. Hope that helps.


Which program do you create a graph?

You can use MS Excel to create a graph from data in the spreadsheet or from an external source. You also can display a graph with MS Powerpoint. MS Word can display a graph, but usually does not create it.


How do you open control panel using a button in CSharp?

create a shortcut on the desktop thentype in codeSystem.Diagnostics.Process.Start(@"C:\Documents and Settings\\Desktop\Mouse.lnk");


Is it true that the distance-time graph for a faster moving object has a smaller slope than the graph for a slower moving object?

False


Is overloading supported in csharp?

Yes


Is it true that the distance time graph for a faster moving object has a smaller slope than the graph for a slower moving object?

No, just the opposite


What is sin regression.. is it when you change a cos graph into a sin graph by moving it sideways help?

no


How do you walk to create a Shaped graph?

a U shaped graph i mean


How an object might move to create a graph if it is moving away from the origin?

If an object is moving away from the origin, its position values will increase over time in one or more directions. This movement would result in a graph with lines or curves that have positive slopes or increasing values, indicating the object's increasing distance from the origin.