Form1 paint and timer

TChaiyaphan

Member
Joined
Dec 14, 2009
Messages
5
Programming Experience
1-3
Hi guys
I have a quick question about using timer and form1_paint.
I can move e.graphic(bitmap,position) by using keydown events
like position.x +=1

but if i try to update position in a timer, nothings happens.
Using me.refresh in timer does not work at all
Using me.invalidate in form1_paint does not work

How can i move or paint graphic using timer in form1_paint?
 
Put Me.Invalidate in the Timer Tick event.
 
Oh nice mate, i never though of doing that! I must be pretty doll thinking.
So is it best to draw all your graphics and moving ones on FORM1_paint by a method of timer + me.invalidate?

Another question?
How do i control different layers > bitmap, so some graphic is not overlaping wrongly?
 
Back
Top