Windows Develop Bookmark and Share   
 index > Windows Forms Designer > problem in movement of image,form background colour occur
 

problem in movement of image,form background colour occur

i have created a game sought of thing in this i have used aimage(having transparent background)
problem: when i move the image for small instant there is colour of the background form how to remove it so the image looks moving smoothly
note:also when i removed the background image it worked very well
is there a solution to it
you can see it at http://vbandc.tripod.com/net/game.html
aditaya garg  Friday, August 21, 2009 11:05 AM
Do you have a form, and inside that form you put a picturebox, and that picturebox shows the image? Or is the image set as the background image of a form?
MCP
webJose  Friday, September 04, 2009 3:22 PM
i used form1.background image property i dont used picture box in whole application
please reply soon
aditaya garg  Saturday, September 19, 2009 5:20 AM
I think that what you see is a flicker. If so, try setting the DoubleBuffered property of the form to True.
MCP
webJose  Saturday, September 19, 2009 5:26 AM
it becomes better but still there is problem still it is not smooth
aditaya garg  Saturday, September 19, 2009 5:37 AM
Without knowing exactly how the application works, I don't think I can be of much further help. What I can suggest is that you do the drawing of the background and sprites yourself using double buffering. If you blit the whole thing in one step, then all flickering will go away.

You can google "double buffering" to find some tutorials and definitions on the technique.
MCP
  • Proposed As Answer bywebJose Wednesday, September 23, 2009 4:48 AM
  •  
webJose  Saturday, September 19, 2009 6:00 AM

You can use google to search for other answers

Custom Search

More Threads

• DataGrid and DataGridView issue?
• MaskedTextbox problem when 1st digit enter
• Outlook Address Card View
• how to add event KeyPress in Panel?
• My Class shows the class name as text not the text i give it
• Is this a good design?
• Web Applications are not able to run on Visual Studio??
• Adding a new windows form from my own custom wizard
• Image compression in compact framework
• Container Control