Advertisement
DrAungWinHtut

frmHello.cs

Oct 21st, 2022
1,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  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.  
  11. namespace IntroductionCsharp
  12. {
  13.     public partial class frmHello : Form
  14.     {
  15.         public frmHello()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void btnHide_Click(object sender, EventArgs e)
  21.         {
  22.             picNature.Visible = false;
  23.         }
  24.  
  25.         private void btnShow_Click(object sender, EventArgs e)
  26.         {
  27.             picNature.Visible = true;
  28.         }
  29.  
  30.         private void frmHello_FormClosing(object sender, FormClosingEventArgs e)
  31.         {
  32.             Application.Exit();
  33.         }
  34.     }
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement