open forms with an effect!


  • I like to create a form that open like an open door or leaf. actually i want to create the animation of the door closing. Anyone have any idea how I can do this or an example of something similiar? Thanks
    Wednesday, October 06, 2010 2:13 PM

All replies

  • Greetings MAHBOOBEH,

    One way you can have an animated door on your form would be to create an animated gif image , using adobe photo shop or another gif animation program. Once you have your created animation:

    1. Place a picture box object on your form where you want your door to "animate" (make sure your animation does not 'loop' or it will just keep showing the animation, my guess is you only want to show it once when the form pops up )
    2. Add the .gif file to the picture box
    3. Show the picture box

    Place your other form controls in front (on top in layer perspective) of the picture box control and have their visible settings set to FALSE . Once the animation is complete you can have a stream line code active their visible to TRUE . When your form loads build an animation stream at run time, this will detect the "end" of the animation and load the given code to show your form controls .

    Hope this helps or at least inspires another alternative!


    Wednesday, October 06, 2010 5:52 PM
  • hi coyotecoder i want somthing Like animatewindow(it an api function)!, i cant use picture ,gid animation or swf or... .I need do this a little more professional(because its a biggish broject!) anybody have any idea??!!! tnx in advance.
    Thursday, October 07, 2010 7:37 AM
  • hi guys i have a good idea for this goal!! we can capture forms and animate theirs image before their opening, we shoud change forms opacity to 0 then show animation and after they show complete return form opcity to 1. i want an image animation like leaf now!!! anybody can give me a sample???!!! tnx.
    Saturday, October 09, 2010 6:08 AM
  • Hi Mahboobeh,


    The question is advisory in nature. In general, WPF is a much better choice for doing UI animations than Windows Forms, but it is possible to do in Windows Forms. There's nothing built directly into Winforms that shows an animated "door" or "leaf" when opening a form.


    However, you can write the code yourself to do this. If we search Bing for "Winforms" and "Animation" there are a number of links with various samples that the customer could leverage or use as a guide for getting started.









    Hope this helps, your question is more of an advisory issue and you may want to consider support options to resolve.


    My recommendation would be to have you open a paid support incident with Microsoft support, and see

    if we can't get a repro. You may have a few options for opening said support


    Alliance and Premier VSIP membership includes a complimentary MSDN subscription, which includes 4

    professional support incidents. These can be used to initialize a support request with Microsoft's

    Customer Support Services. Some versions of Visual Studio include a number of free support incidents

    as well. See the "Technical Support Incidents" topic for details.


    visit the below link to see the various paid support options that are available to better meet your

    needs. http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone



    Friday, October 15, 2010 7:08 PM