Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > problem with animated gif
 

problem with animated gif

I'm trying 2 display an animatedgif on a datagridview but when i do it it is only displaying the static image. When i display it on a windows form the animation works but when i put it on the grid it dosen't. Is there somethingspecial about a datagridview that dosen't allow for it to display animated images?

Pr1nce  Tuesday, November 14, 2006 1:07 AM
When you draw an animated gif on a windows form it shows its static picture. When you place the animated gif in a picture box the picturebox will play the image. The datagridview only paints the data inside the cell. The only time a control is used is when the cell is edit mode.The best you could do is to create a custom column which plays the animated gif when the user selects the cell
Ken Tucker  Tuesday, November 14, 2006 5:40 PM
When you draw an animated gif on a windows form it shows its static picture. When you place the animated gif in a picture box the picturebox will play the image. The datagridview only paints the data inside the cell. The only time a control is used is when the cell is edit mode.The best you could do is to create a custom column which plays the animated gif when the user selects the cell
Ken Tucker  Tuesday, November 14, 2006 5:40 PM
Thank you, well back to the drawing board
Pr1nce  Tuesday, November 14, 2006 5:48 PM
hey i dont know how to develop custom datagridview cell re.. plz help me..

thakns
Vijay Kumar Bandari  Thursday, February 01, 2007 8:53 AM
I've gotten around the issue by animating the image myself using ImageAnimator.

This is of course a custom solution and not one suitable for more than 1 or 2 images but that's all I needed.

That's an interesting idea though, making an animated image column..
Patrick Sears  Friday, February 02, 2007 3:02 AM
Could you please share your code for others with the same problem ?

Regards.
George Waters  Thursday, August 27, 2009 9:24 AM

You can use google to search for other answers

Custom Search

More Threads

• How to validate UK postcode in vb
• DataGridView ComboBox Columns Problem
• BindingSource IsDirty Property
• Checking Constraints in DGV bound to a DataTable
• Get a single value from a datasource table
• Data Adapter Commands
• open parent/child form to add new record
• Databinding problem: ComboBox and simple String List
• DataGridView hierarchical
• Index was outside the bounds of the array ?