473,666 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Nov 22 '05 #1
0 1625

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
386
by: DraguVaso | last post by:
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...
0
1126
by: Krunoslav Ostrouska | last post by:
ArrayList included in object is not saved at clippboard copy in Win98 (Clipboard.SetDataObject() and IDataObject.GetData()) ! In WinXP, framework calls GetObjectData() and constructor(SerializationInfo, StreamingContext) of ISerializable (class serialise it self), during IDataObject.GetData() call, and it works. In Win98 not! Why is it diferent in W98 and what can i do to make it work in W98 to? Thanks, Kruno
4
3054
by: Dave | last post by:
I need to add the ability to drag from a Windows Form and drop into a non dotNet application. For example, having a generated image in my app that I wish to drag out into explorer as a friendly way to save it. I have tried creating the object that I place into the DoDragDrop() by inheriting the COM interfaces IDropSource and IDataObject with no luck. If anyone can help I am very much open to suggestions. Thanks in advance!
1
1366
by: LoSTMaN | last post by:
Hi, Did someone have a idea why this code always return False when i drag a filename.bmp in my PictureBox. Private Sub PictureBox1_DragEnter(ByVal sender As Object, ByVal e As DragEventArgs) Handles PictureBox1.DragEnter If e.Data.GetDataPresent(DataFormats.Bitmap) Then ============>>> Here, always return false e.Effect = DragDropEffects.Copy
0
976
by: pmclinn | last post by:
I have a file that is saved to the clipboard as an HTML file. The file renders as an image though. Is there anyway to convert this to a bmp? Dim d As IDataObject = Clipboard.GetDataObject() If d.GetDataPresent(DataFormats.Text) Then MsgBox("Found") Else MsgBox("Invalid format") End If
7
2111
by: **Developer** | last post by:
Although the code is VB I believe the question is OOP I tried the VB NG but no answer. I suspect the c# programmer is more apt to be aware of these kinds of subtleties so I', trying here. I do the following: Note that I'm returning and interface because GetDatObject returns an interface.
3
7809
by: nicolas.hilaire | last post by:
Hi group, when using unmanaged class with my managed app, I've seen errors when including (for example) <windows.h>. One of theses erros is : IDataObject : ambiguous symbol error I've seen somewhere that to avoid this error, i've to remove all "using namespace XXXXX" from .h, and move it to .cpp.
3
2959
by: dmeglio | last post by:
I have the following code: foreach (System.Type type in this.slideModules.Values) { IDataObject ido = Clipboard.GetDataObject(); if (ido.GetDataPresent(type)) { slide = ido.GetData(type) as RC.Objects.RCSlideBase; break; }
0
2782
by: =?ISO-8859-1?Q?=22Ro=DFert_G=2E_Schaffrath=22?= | last post by:
Sorry for the cross-posting. I am having a hard time trying to classify exactly what group this question would apply to. I had posted an earlier message to microsoft.public.dotnet.framework.windowsforms trying to find a way to access the lindex member of the FORMATETC structure for a CFSTR_FILECONTENTS callback request under C#. After some experimenting I was able to come up with the following code snippet that receives the callback...
0
1000
by: monty0018 | last post by:
Hi, I'm writing a custom clipboard application in VB .NET 2008 similar to Ditto (http://ditto-cp.sourceforge.net/). I have tried targeting .NET Frameworks 2.0, 3.0, and 3.5 with the same results. I have also tried targeting x86 and x64 CPUs. I am developing on Windows Vista SP 1 x64. My problem is that when pasting to IE forms, nothing is pasted! It
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8780
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.