473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clipboard

I want the dialog box with the parameters to be sent to
the Clipboard, so that later I could past it to the output
file. Is there any way in C# to do this? Or maybe through
the InterOp serveces?

There is a function "Clipboard.SetDataObject" in C#, which
can do this. But I could not find a way to send the bitmap
of my dialog box to it.

Any ideas?

Viktor

Nov 16 '05 #1
3 2799
hi Viktor:

You should be able to pass the bitmap reference to SetDataObject, i.e.

Clipboard.SetDataObject(bitmap);

Have you tried that?

--
Scott
http://www.OdeToCode.com/

On Wed, 29 Sep 2004 09:18:56 -0700, "Viktor" <vi****@ucla.edu> wrote:
I want the dialog box with the parameters to be sent to
the Clipboard, so that later I could past it to the output
file. Is there any way in C# to do this? Or maybe through
the InterOp serveces?

There is a function "Clipboard.SetDataObject" in C#, which
can do this. But I could not find a way to send the bitmap
of my dialog box to it.

Any ideas?

Viktor


Nov 16 '05 #2
Yes, it works fine. The problem is how to capture my Form
into a Bitmap.

Viktor

-----Original Message-----
hi Viktor:

You should be able to pass the bitmap reference to SetDataObject, i.e.
Clipboard.SetDataObject(bitmap);

Have you tried that?

--
Scott
http://www.OdeToCode.com/

On Wed, 29 Sep 2004 09:18:56 -0700, "Viktor" <vi****@ucla.edu> wrote:
I want the dialog box with the parameters to be sent to
the Clipboard, so that later I could past it to the outputfile. Is there any way in C# to do this? Or maybe throughthe InterOp serveces?

There is a function "Clipboard.SetDataObject" in C#, whichcan do this. But I could not find a way to send the bitmapof my dialog box to it.

Any ideas?

Viktor


.

Nov 16 '05 #3
Ah, sorry I misunderstood the question, Viktor.

Here is an article with an example of capturing a form into a Bitmap:
http://www.c-sharpcorner.com/Graphic...CaptFormMG.asp

HTH,

--
Scott
http://www.OdeToCode.com/

On Wed, 29 Sep 2004 15:06:28 -0700,
<an*******@discussions.microsoft.com> wrote:
Yes, it works fine. The problem is how to capture my Form
into a Bitmap.

Viktor

-----Original Message-----
hi Viktor:

You should be able to pass the bitmap reference to

SetDataObject, i.e.

Clipboard.SetDataObject(bitmap);

Have you tried that?

--
Scott
http://www.OdeToCode.com/

On Wed, 29 Sep 2004 09:18:56 -0700, "Viktor"

<vi****@ucla.edu> wrote:
I want the dialog box with the parameters to be sent to
the Clipboard, so that later I could past it to theoutputfile. Is there any way in C# to do this? Or maybethroughthe InterOp serveces?

There is a function "Clipboard.SetDataObject" in C#,whichcan do this. But I could not find a way to send thebitmapof my dialog box to it.

Any ideas?

Viktor


.


Nov 16 '05 #4

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

Similar topics

0
2204
by: xyz | last post by:
I have a menu item to handle clipboard actions (cut, copy, paste). When I paste text that I copied from a Hungarian web page, the display looks normal on my RichTextBox, but the text retrieved from...
8
11446
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
7
11600
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
0
1890
by: James Russo | last post by:
Hello, I have an application which requires an image to be retrived from the clipboard. So, I am writting a quick C# windows application to take images from a webcam and store a single frame on...
7
3838
by: Newbie | last post by:
How do I clear the clipboard in VB.NET 2003? TIA Newbie
15
12260
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
1
18614
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active...
8
2455
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
20
6969
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If...
23
6238
by: Over | last post by:
Hi it's possible with language C, (Mingw or Djgpp) copying the clipboard of WinXp into file.txt? which function must be use. Thanks
0
7198
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,...
0
7319
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...
1
6979
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...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
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...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1498
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 ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.