TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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
Reply
Answers (
2
)
importing Excel file to Datgrid
System.AccessViolationException C#