Massimo

Massimo

  • NA
  • 155
  • 0

Disposing problem

Jul 9 2009 7:10 PM
Hi , i have this code :
using System.Text;
using System.Windows.Forms;
using Microsoft.CSharp;
using mshtml;
using System.Web;
using System.Collections;

namespace AppTools
{
    public partial class frmAppTool : Form
    {
        private int task = 0;
        private int stop = 0;
        private System.ComponentModel.IContainer components = null;

        public frmAppTool()
        {
            InitializeComponent();
        }
        protected override void Dispose(bool disposing)
        {
            //FadeEffect.FadeForm(this, 50);

            if (disposing && (components != null)) 
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

Error    1    The type 'AppTools.frmAppTool' already contains a definition for 'components'    C:\Users\Getimage\Documents\Visual Studio 2008\Projects\AppTools\AppTools\Form1.cs    22    50    AppTools


Why? i'm very beginner to c#. thanks for the help, bye

Answers (2)