hi friends i am getting an error while creating a .dll file for a component in vb.net..the error is system.componentmodel.icontainer is not defined......pls give me a idea whats my mistake ...and its creating a .dll file for a class...pls let me know whats the exact difference between class and a component in .net.....<BR>thank you<BR>satya<BR><BR><BR><BR>my code is:<BR><BR><BR>Public Class Component1<BR> Inherits System.ComponentModel.Component<BR> Public Function func() As String<BR> func = "func from component1"<BR> End Function<BR>#Region " Component Designer generated code "<BR><BR> Public Sub New(ByVal Container As System.ComponentModel.IContainer)<BR> MyClass.New()<BR><BR> &#039;Required for Windows.Forms Class Composition Designer support<BR> Container.Add(Me)<BR> End Sub<BR><BR> Public Sub New()<BR> MyBase.New()<BR><BR> &#039;This call is required by the Component Designer.<BR> InitializeComponent()<BR><BR> &#039;Add any initialization after the InitializeComponent() call<BR><BR> End Sub<BR><BR> &#039;Component overrides dispose to clean up the component list.<BR> Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)<BR> If disposing Then<BR> If Not (components Is Nothing) Then<BR> components.Dispose()<BR> End If<BR> End If<BR> MyBase.Dispose(disposing)<BR> End Sub<BR><BR> &#039;Required by the Component Designer<BR> Private components As System.ComponentModel.IContainer<BR><BR> &#039;NOTE: The following procedure is required by the Component Designer<BR> &#039;It can be modified using the Component Designer.<BR> &#039;Do not modify it using the code editor.<BR> &#060;System.Diagnostics.DebuggerStepThrough()&#06 2; Private Sub InitializeComponent()<BR> components = New System.ComponentModel.Container()<BR> End Sub<BR><BR>#End Region<BR><BR>End Class