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 3 2793
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
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
.
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
.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
by: Newbie |
last post by:
How do I clear the clipboard in VB.NET 2003?
TIA
Newbie
|
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...
|
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...
|
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...
|
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...
|
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
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |