Application, IDataObject, Dataformats, Clipboard not declared/defined in a Class Library?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DraguVaso

    Application, IDataObject, Dataformats, Clipboard not declared/defined in a Class Library?

    Hi,

    I made some application (VB.NET 2005) based on classes in Windows Forms. I
    made a new Class Library Project and copied all of my classes and modules in
    it, to make a DLL that I could import afterwarths in Windows Forms
    applciations.

    The problem is that I get several errors indication that some methods aren't
    declared or defined when I try to build the project...

    some exemples:
    - Application.Sta rtupPath doesn't work anymore (it doesn't recognize
    Application): does this have another name in a Class Library?
    - Dim IData as IDataObject: Type 'IDataObject' is not defined
    - Clipboard.SetDa taObject(DataOb ject): Name 'Clipboard' is not declared

    Does anybody know a solution for this?

    Thanks a lot in advance!

    Pieter


Working...