This is something makes a simple Form more aesthetically rich. Form cosmetic aspects plays major part but launch of a form also plays a major aspects how user perceive it. I was looking ways to do that, one way is to use timer to change the opacity of form during show and hide. Other way and better way to animate it. User need to use user32.dll for it.
Implementation:
Add following reference
Initialization - add following in FormClass
Need to handle two form events "XXX_Load" and "XXX_FormClosing" and add following code in that
Reference :- http://subversion.assembla.com/svn/nex-framework/trunk/.NEX%20framework/WindowsAPI/user32.cs
Implementation:
Add following reference
using System.Runtime.InteropServices;
Initialization - add following in FormClass
namespace TestNamespace { public partial class TestForm : Form { [DllImport("user32.dll")] static extern bool AnimateWindow(IntPtr hWnd, int time, AnimateWindowFlags flags); [Flags] enum AnimateWindowFlags { AW_HOR_POSITIVE = 0x00000001, AW_HOR_NEGATIVE = 0x00000002, AW_VER_POSITIVE = 0x00000004, AW_VER_NEGATIVE = 0x00000008, AW_CENTER = 0x00000010, AW_HIDE = 0x00010000, AW_ACTIVATE = 0x00020000, AW_SLIDE = 0x00040000, AW_BLEND = 0x00080000 } } }
Need to handle two form events "XXX_Load" and "XXX_FormClosing" and add following code in that
private void TestForm_Load(object sender, EventArgs e) { AnimateWindow(this.Handle, 1000, AnimateWindowFlags.AW_BLEND | AnimateWindowFlags.AW_ACTIVATE); } private void TestForm_FormClosing(object sender, FormClosingEventArgs e) { AnimateWindow(this.Handle, 1000, AnimateWindowFlags.AW_BLEND | AnimateWindowFlags.AW_HIDE); }
Reference :- http://subversion.assembla.com/svn/nex-framework/trunk/.NEX%20framework/WindowsAPI/user32.cs
Dear, I like your blog very much, I can get many useful information. Hope that we can communicate with each other. By the way, have you ever used memory card software ? Unfortunately I lost my memory card data. I do not know how to do.
ReplyDeleteVery nice post I really enjoyed it...You can also visit my website for
ReplyDeleteCall Girls in Bangalore
Call Girls in Kolkata
Call Girls in Lucknow
Call Girls in Jammu
Call Girls in Chandigarh
Call Girls in Guwahati
Call Girls in Ranchi
Call Girls in Gurgaon
Call girls in Chandigarh
Call girls in Mumbai
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteEscorts in Bangalore
Escorts in Kolkata
Escorts in Lucknow
Escorts in Jammu
Escorts in Chandigarh
Escorts in Guwahati
Escorts in Ranchi
Escorts in Gurgaon
Escorts in Chandigarh
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteEscort services in Bangalore
Escort services in Kolkata
Escort services in Lucknow
Escort services in Jammu
Escort services in Chandigarh
Escort services in Guwahati
Escort services in Ranchi
Escort services in Gurgaon
Escort services in Chandigarh
Escort services in Mumbai
Call girls in Guwahati
ReplyDeleteCall girls in Ranchi
Call girls in Gurgaon
Call girls in Chandigarh
Call girls in Mumbai
Call girls in Pune
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteEscorts in Bangalore
Escorts in Kolkata
Escorts in Lucknow
Escorts in Jammu
Escorts in Chandigarh
Very nice post I really enjoyed it...You can also visit my website for
ReplyDeleteEscorts in Bangalore
Escorts in Kolkata
Escorts in Lucknow
Escorts in Jammu
Escorts in Chandigarh
Escorts in Guwahati
ReplyDeleteEscorts in Ranchi
Escorts in Gurgaon
Escorts in Chandigarh
Escorts in Pune
If you are in Jaipur and need beautiful Jaipur Escorts or white skin Jaipur Escorts then you can simply book call girls in Jaipur from one of the best escort agency named Jaipur Escorts. It is No.1 premier escort agency and provide both incall or outcall facility to clients.Please click on the following link to check the official websites Jaipur Escorts
ReplyDeleteCall Girls in Kolkata
ReplyDeleteCall Girls in Mumbai
Call Girls in Lucknow
Call Girls in Gurgaon
Call Girls in Bangalore
Call Girls in Guwahati
======================
Escorts
======================
Escorts in Kolkata
Escorts in Mumbai
Escorts in Lucknow
Escorts in Gurgaon
Escorts in Bangalore
Escorts in Guwahati
Escort services
======================
Escort services in Kolkata
Mumbai Escort Service
Escort services in Lucknow
Escort services in Gurgaon
Escort services in Bangalore
Escort services in Guwahati
======================
Escort service
======================
Escort Service in Kolkata
Escort Service in Mumbai
Escort Service in Lucknow
Escort Service in Gurgaon
Escort Service in Bangalore
Escort Service in Guwahati
๐Call girl in jaipur
ReplyDelete๐Call girl in Jaipur
๐Call girl in Jaipur
๐Call girl in Delhi
๐Call girl in Guwahati
๐Call girl in Guwahati
๐Call girl in Guwahati
๐Call girl in Guwahati