复制成功
  • 图案背景
  • 纯色背景

笔记

  • 2019-11-16
    为大人带来形象的羊生肖故事来历 为孩子带去快乐的生肖图画故事阅读
    谈谈怎样学好数学_苏步青-中学生文库
q550139

上传于:2014-11-24

粉丝量:0

egƱַ该文档贡献者很忙,什么也没留下。



egƱַ_winform窗体淡入淡出效果

下载积分:1500

内容提示: C#ʵÏÖ´°Ìåµ-Èëµ-³öЧ¹ûµÄ¼¸ ÖÖ· ½· ¨(ת) 1. private void Form1_Load(object sender, System. EventArgs e) for(double d=0. 01; d< 1; d+=0. 02) { System. Threading. Thread. Sleep(1) ; Application. DoEvents() ; this. Opacity=d; this. Refresh() ; } 2. private void timer1_Tick(object sender, System. EventArgs e) { this. Opacity = WinShow ...

文档格式:TXT| 浏览次数:26| 上传日期:2014-11-24 00:11:28| 文档星级:
C#ʵÏÖ´°Ìåµ-Èëµ-³öЧ¹ûµÄ¼¸ ÖÖ· ½· ¨(ת) 1. private void Form1_Load(object sender, System. EventArgs e) for(double d=0. 01; d< 1; d+=0. 02) { System. Threading. Thread. Sleep(1) ; Application. DoEvents() ; this. Opacity=d; this. Refresh() ; } 2. private void timer1_Tick(object sender, System. EventArgs e) { this. Opacity = WinShow ; WinShow += 0. 1 ; if(WinShow >=1 ) { timer1. Dispose () ; } } 3. ÓÃÑ-»· »ò<strong class="kgb" false; isShowAds2 = true; InTextAds_GgLayer="_u8BA1_u65F6_u5668"; KeyGate_ads. ShowGgAds(this, "_u8BA1_u65F6_u5668", event) " PADDING-RIGHT: 0px; PADDING-LEFT: BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; CURSOR: hand; COLOR: #0000ff; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: onclick="javascript: window. open("http: //www. google. com/pagead/iclk?sa=l&ai=BW8hhB2P3RtXEEp20sAK9_sDxD_6OtTDu4-v1ApqBqL0U0PhaEAEYASCvmqoJKAU4AVCy6trxAWCdidWBtAWgAbLAwPwDqgEKMTAwMDAxNjAwMsgBAakCLAaEmMXjgT7IAuKZmAHZA0ZGJIlU9rDD&num=1&adurl=http: //focus. ti. com. cn/cn/analog/docs/clockandtimershome. tsp%3FfamilyId%3D346%26contentType%3D4%26DCMP%3DTI-cn_Header_Tracking%26HQS%3Dv%3FOT%2Bhdr_p_clocks") ;GgKwClickStat("¼ÆʱÆ÷", "focus. ti. com. cn", "afs", "1000016002") ; " onmouseover="isShowAds false; isShowGg = = style="BORDER-TOP-WIDTH: 0px; FONT-WEIGHT: 0px; normal; underline" onmouseout="isShowGg false; InTextAds_GgLayer="_u8BA1_u65F6_u5668"">¼ÆʱÆ÷£¬ frmForm myForm=new frmForm() frmForm. Opacity=0; frmForm. show() ; for(int i=0; i<100; i++) { Application. DoEvents() frmForm. Opacity=i/100; } 4. #region ******** ´°Ìåµ-ÈëЧ¹ ûº¯Êý ******** private double 0; //ÓÃÓÚ´°¿Úµ-ÈëЧ¹ûµÄ±äÁ¿ private void FormShow(System. Windows. Forms. Form Curfrm) { Curfrm. Opacity = WinShow ; WinShow += 0. 01; if(WinShow == 1) { Curfrm. timerShow. Stop () ; } } #endregion #region ******** ´°Ìåµ-ÈëЧ¹ûº¯Êýµ÷ÓÃʾÀý ******** //ʵÏÖ´°¿ÚµÄµ-ÈëЧ¹û private void timerShow_Tick(object sender, System. EventArgs e) { //timerShow£¬ÕâÊÇÒ»¸ ötimer¿Ø¼þÃû³Æ£»°ÑtimerShow. interval=100¾Í¿ÉÒÔÁË¡ £ FormShow(this) ; } #endregion = WinShow = 5. using System. Runtime. InteropServices; public class Win32 { public const Int32 AW_HOR_POSITIVE = 0x00000001; // ´Ó×óµ½ÓÒ´ò¿ª´°¿Ú public const Int32 AW_HOR_NEGATIVE = 0x00000002; // ´ÓÓÒµ½×ó´ò¿ª´°¿Ú public const Int32 AW_VER_POSITIVE = 0x00000004; // ´ÓÉϵ½Ï´ò¿ª´°¿Ú public const Int32 AW_VER_NEGATIVE = 0x00000008; // ´Óϵ½ÉÏ´ò¿ª´°¿Ú public const Int32 AW_CENTER = 0x00000010; public const Int32 AW_HIDE = 0x00010000; // ÔÚ´°ÌåжÔØʱÈôÏëʹÓñ¾º¯Êý¾ÍµÃ¼ÓÉϴ˳£Á¿ public const Int32 //ÔÚ´°Ìåͨ¹ý±¾º¯Êý´ò¿ªºó£¬Ä¬ÈÏÇé¿öÏ»áʧȥ½¹µã£¬³ý· ǼÓÉϱ¾³£Á¿ public const Int32 AW_SLIDE = 0x00040000; public const Int32 AW_BLEND = 0x00080000; // µ-Èëµ-³öЧ¹û [DllImport("user32. dll", CharSet = CharSet. Auto) ] public static extern bool AnimateWindow( IntPtr hwnd, // handle to window int dwTime, // duration of animation int dwFlags // animation type ) ; } /*µ-Èë´°Ìå*/ private void Form_Load(object sender, EventArgs e) { Win32. AnimateWindow(this. Handle, 2000, Win32. AW_BLEND) ; } /*µ-³ö´°Ìå*/ AW_ACTIVATE = 0x00020000; private void Form_FormClosing(object sender, FormClosingEventArgs e) { Win32. AnimateWindow(this. Handle, Win32. AW_HIDE | Win32. AW_BLEND) ; } 2000, Win32. AW_SLIDE |         

关注我们

关注微信公众号

您选择了以下内容