c# - Moving Picture box with timer faster -


I have a project in Compact Framework 2.0 C # I am using a number of pictureboxes in the form and making changes in it There is a timer for every other pictureboxes but it runs slowly but how fast can I do it?

The timer interval is 100

  Private zero timer 1 volt (object sender, event ergugged E) {picust.Location = new point (picust.Location.X, picust.Location .Y + 10); Picx.Location = New point (picx.Location.X, picx.Location.Y + 10); Picy.Location = New point (picy.Location.X, picx.Location.Y + 10); } Since you are using Net Compact Framework 2.0, you can use your code And the methods that will start with version 2.0. As an example, place these methods around your code:  
  // Assume that this code is within the parent form private zero timer 1 volt (object sender, eventAgps E) {this. SuspendLayout (); Picture. Location = new point (picture location.x, picture location, Y + 10); Picx.Location = New point (picx.Location.X, picx.Location.Y + 10); Picy.Location = New point (picy.Location.X, picx.Location.Y + 10); This.ResumeLayout (); }   

This will stop the three redwing of the form and instead only do one.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -