title: How to add animated gif to a button?
body: <p>Can you tell me how to add an animation gif to a button in c#. Just by adding gif to resources and setting as button image didn't work very well (next frames apear over the previous ones). The problem seems to be in a way how c# is treating transparency but I don't know how to fix it.</p>
  
  <p>Thanks in advance.</p>
  
  <p>--- edit ---</p>
  
  <p>After playing with the gif the issue was with transparency in gif. Next frame was drawn over the previous one so elements I wanted to become transparent in the middle of the animation just didn't do it properly (they still have the color of the previous frame). Solution was to create white areas on the next frame to cover the previous one. White was my transparent color so everything looked just fine after that :)</p>
  
  <p>I hope someone will see it useful. 
  Happy programming :)</p>