no overload for method 'exit' '1' argument (ppc)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alenchan
    New Member
    • Jul 2011
    • 1

    no overload for method 'exit' '1' argument (ppc)

    [code=c#]
    using System;

    using System.Collecti ons.Generic;
    using System.Componen tModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows. Forms;

    namespace SmartDeviceProj ect1
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeCompo nent();
    }

    private void Form1_KeyDown(o bject sender, KeyEventArgs e)
    {
    if ((e.KeyCode == System.Windows. Forms.Keys.Up))
    {
    // Up
    }
    if ((e.KeyCode == System.Windows. Forms.Keys.Down ))
    {
    // Down
    }
    if ((e.KeyCode == System.Windows. Forms.Keys.Left ))
    {
    // Left
    }
    if ((e.KeyCode == System.Windows. Forms.Keys.Righ t))
    {
    // Right
    }
    if ((e.KeyCode == System.Windows. Forms.Keys.Ente r))
    {
    // Enter
    }

    }


    private void button1_Click(o bject sender, EventArgs e)
    {
    MessageBox.Show ("vui hen");
    }

    private void menuItem4_Click (object sender, EventArgs e)
    {
    Application.Exi t("1");
    }




    }
    }
    [/code]
    Last edited by Plater; Jul 19 '11, 04:33 PM.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    The error message is pretty self-explanatory.
    Application.Exi t() doesnt take a parameter. Remove it.

    Comment

    Working...