Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApplication3
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- this.Visible = false;
- Form2 form2 = new Form2();
- form2.Show();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void mnuQuit_Click(object sender, EventArgs e)
- {
- DialogResult dialog = MessageBox.Show("Really Quit?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
- if (dialog == DialogResult.Yes)
- {
- Application.Exit();
- }
- }
- private void onlineHelpToolStripMenuItem_Click(object sender, EventArgs e)
- {
- System.Diagnostics.Process.Start("http://www.google.com");
- }
- private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.Visible = true;
- Form12 form12 = new Form12();
- form12.Show();
- }
- private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
- {
- // menuStrip1.BackColor=Color.Blue;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment