Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem with GraphicsPath Pin
bernd.salewski24-Nov-04 10:51
bernd.salewski24-Nov-04 10:51 
GeneralI found my mistake!!! Pin
bernd.salewski24-Nov-04 11:50
bernd.salewski24-Nov-04 11:50 
Generalsummations Pin
cma2324-Nov-04 7:18
cma2324-Nov-04 7:18 
GeneralRe: summations Pin
Heath Stewart24-Nov-04 8:45
protectorHeath Stewart24-Nov-04 8:45 
GeneralRe: summations Pin
cma2324-Nov-04 9:16
cma2324-Nov-04 9:16 
GeneralRe: summations Pin
Heath Stewart24-Nov-04 10:09
protectorHeath Stewart24-Nov-04 10:09 
GeneralRemoting Problems ... Pin
Paebbels24-Nov-04 6:23
Paebbels24-Nov-04 6:23 
GeneralRe: Remoting Problems ... Pin
Paebbels25-Nov-04 9:07
Paebbels25-Nov-04 9:07 
QuestionFind HttpChannel??? Pin
Snowjim24-Nov-04 4:42
Snowjim24-Nov-04 4:42 
AnswerRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 5:10
Stefan Troschuetz24-Nov-04 5:10 
GeneralRe: Find HttpChannel??? Pin
Snowjim24-Nov-04 5:19
Snowjim24-Nov-04 5:19 
GeneralRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 5:26
Stefan Troschuetz24-Nov-04 5:26 
GeneralRe: Find HttpChannel??? Pin
Heath Stewart24-Nov-04 5:40
protectorHeath Stewart24-Nov-04 5:40 
GeneralRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 7:51
Stefan Troschuetz24-Nov-04 7:51 
GeneralRe: Find HttpChannel??? Pin
Heath Stewart24-Nov-04 10:19
protectorHeath Stewart24-Nov-04 10:19 
GeneralRe: Find HttpChannel??? Pin
Stefan Troschuetz24-Nov-04 21:05
Stefan Troschuetz24-Nov-04 21:05 
Generalchange border width and color of panel Pin
yonitgil24-Nov-04 3:27
yonitgil24-Nov-04 3:27 
GeneralRe: change border width and color of panel Pin
Heath Stewart24-Nov-04 10:43
protectorHeath Stewart24-Nov-04 10:43 
GeneralRe: change border width and color of panel Pin
yonitgil27-Dec-04 21:45
yonitgil27-Dec-04 21:45 
GeneralRe: change border width and color of panel Pin
Heath Stewart28-Dec-04 5:11
protectorHeath Stewart28-Dec-04 5:11 
GeneralGet data from the clipboard Pin
lmaks24-Nov-04 3:22
lmaks24-Nov-04 3:22 
GeneralRe: Get data from the clipboard Pin
Heath Stewart24-Nov-04 6:24
protectorHeath Stewart24-Nov-04 6:24 
You're about to venture down a road that will require a lot of reading.

The clipboard and drag-n'-drop functionality use OLE heavily. If you copy both text and image, it really matters how they were packed into the IDataObject (the native interface, not the managed System.Windows.Forms.IDataObject interface) and if you can get it out. Since the .NET BCL doesn't expose all the types necessary for full drag-n'-drop, you're stuck with what the .NET BCL does expose (like getting RTF, text, an image (separately), and a few more things) or writing a lot of P/Invoke calls and declaring and implementing a lot of interfaces declared natively.

So, if you want the easy road, please tell me what application you copied text and image(s) from. If it was Word or WordPad or something similar, chances are that it copied multiple formats including RTF, which .NET supports (see the DataFormats class, specifically the DataFormats.Rtf field).

If you want to get data from the clipboard, use the Clipboard.GetDataObject static method.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralICO to JPEG Pin
CyberTech24-Nov-04 2:19
CyberTech24-Nov-04 2:19 
GeneralRe: ICO to JPEG Pin
Heath Stewart24-Nov-04 10:17
protectorHeath Stewart24-Nov-04 10:17 
GeneralQuery on Scrolling Pin
pradeep_pc24-Nov-04 0:46
pradeep_pc24-Nov-04 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.