SplashForm.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace felixyin
  11. {
  12. public partial class SplashForm : Form
  13. {
  14. public SplashForm()
  15. {
  16. InitializeComponent();
  17. }
  18. private void SplashForm_FormClosed(object sender, FormClosedEventArgs e)
  19. {
  20. //关闭定时器
  21. }
  22. private void SplashForm_VisibleChanged(object sender, EventArgs e)
  23. {
  24. this.ControlBox = false;
  25. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
  26. this.ShowIcon = false;
  27. this.ShowInTaskbar = false;
  28. this.Show();
  29. }
  30. private void SplashForm_Deactivate(object sender, EventArgs e)
  31. {
  32. this.ControlBox = false;
  33. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
  34. this.ShowIcon = false;
  35. this.ShowInTaskbar = false;
  36. this.Show();
  37. }
  38. private void SplashForm_StyleChanged(object sender, EventArgs e)
  39. {
  40. }
  41. }
  42. }