Pavle_nis

C++ Quiz Form1

Oct 19th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.52 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 WindowsFormsApplication3
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.         private void button1_Click(object sender, EventArgs e)
  20.         {
  21.             this.Visible = false;
  22.             Form2 form2 = new Form2();
  23.             form2.Show();
  24.         }
  25.  
  26.  
  27.         private void Form1_Load(object sender, EventArgs e)
  28.         {
  29.  
  30.         }
  31.  
  32.         private void mnuQuit_Click(object sender, EventArgs e)
  33.         {
  34.             DialogResult dialog = MessageBox.Show("Really Quit?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
  35.             if (dialog == DialogResult.Yes)
  36.             {
  37.                 Application.Exit();
  38.             }
  39.         }
  40.  
  41.         private void onlineHelpToolStripMenuItem_Click(object sender, EventArgs e)
  42.         {
  43.             System.Diagnostics.Process.Start("http://www.google.com");
  44.         }
  45.  
  46.         private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
  47.         {
  48.             this.Visible = true;
  49.             Form12 form12 = new Form12();
  50.             form12.Show();
  51.         }
  52.  
  53.         private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
  54.         {
  55.           //  menuStrip1.BackColor=Color.Blue;
  56.         }
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment