|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WIALib errorI have a project containing a class and it works OK.
However, when I copy the class and paste it into my library I get and error. Do you know what might cause that? THANKS Something = New Collection() produces: Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in this context because it is 'Private'. C:\Documents and Settings\...LibraryVb make CollectionClass.new Public
Public Sub New Show quoteHide quote " Franky" <frankyNOSPAM@a-znet.com> wrote in message news:OlRB3QLEHHA.4060@TK2MSFTNGP03.phx.gbl... >I have a project containing a class and it works OK. > > However, when I copy the class and paste it into my library I get and > error. > > Do you know what might cause that? > > THANKS > > Something = New Collection() > > produces: > > Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in > this context because it is 'Private'. C:\Documents and > Settings\...LibraryVb > > > > > > > It would have been smart if I included:
Dim Something As MSScriptControl.ScriptControlClass thanks for replying Show quoteHide quote "OHM" <lkjhlkj> wrote in message news:Op8F3lMEHHA.4112@TK2MSFTNGP03.phx.gbl... > make CollectionClass.new Public > > Public Sub New > > > " Franky" <frankyNOSPAM@a-znet.com> wrote in message > news:OlRB3QLEHHA.4060@TK2MSFTNGP03.phx.gbl... >>I have a project containing a class and it works OK. >> >> However, when I copy the class and paste it into my library I get and >> error. >> >> Do you know what might cause that? >> >> THANKS >> >> Something = New Collection() >> >> produces: >> >> Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in >> this context because it is 'Private'. C:\Documents and >> Settings\...LibraryVb >> >> >> >> >> >> >> > > Try again to get this right!
I have a project containing a class and it works OK. When I copy the class and paste it into my library I get an error. Do you know what might cause it? THANKS Private Something As Collection Something = New Microsoft.VisualBasic.Collection() produces: Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in this context because it is 'Private'. C:\Documents and Settings\...LibraryVb
calling math functions at run time
regarding .net help Help reading control.location value back form text file simple format question Getting IP Address of the ACTIVE network card DataGridView conversion problems Good book for an absolute beginner on VB.net or 2005 with databases newbie: foundfile attributes? (filesize, saved date, etc.) Can someone please translate this to VB.Net need help with 1 line of code now! |
|||||||||||||||||||||||