Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21103

Strange problem in moving an object

$
0
0
I'm have a strange situation where I move a control from from the source square to the target square. The appearance is such that the control is seen on the source square then it appears on the target square (you can actually see the control on both squares) then after that the control dissapears from the source square. This makes an unsightly movement. I even tried making the control invisible first, then the move, then making the control visible but the appearance remains the same. What causes this?

EDIT: Since these are user controls I was wondering if the problem could be caused by the amount of data in the control. I do have a lot of arrays, functions, etc in the control.

Code:

  '
  '
  ucWPiece(SelectedPiece).Visible = False
  ucWPiece(SelectedPiece).Move ucSquare(Index).XPos, ucSquare(Index).YPos
  ucWPiece(SelectedPiece).Visible = True
  '
  '


Viewing all articles
Browse latest Browse all 21103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>