You can't store both. Try selecting the text of a webpage with a few picture on it and copying it, it won't work. The only way is to probably hook the Control+V and Paste commands and set each item to the clipboard before pasting.
You can't store both. Try selecting the text of a webpage with a few picture on it and copying it, it won't work. The only way is to probably hook the Control+V and Paste commands and set each item to the clipboard before pasting.
Phreak
hmm phReaAk
it means Clipboard cannot be multidimensional in any sense.
if i will hook paste commands then problem will remain the same that i wan to different things at a time in Clipboard Object.
Technically, they wouldn't be on the clipboard at all. I'd have a program with picturebox arrays and string arrays. When the user wants to copy both a picture and text to the clipboard, they are instead moved to the pictureboxes and arrays. Then when you hook the keys, whenever they paste, you paste each item, 1 by 1, moving them from arrays/pictureboxes to the clipboard, and pasting.
it is that
clipboard object is already occupied by another application .
Now i want to copy my text or picture into clipboard and want to retrieve it as well while keeping anything which is in clipboard object before i used clipboard.
thx phReAk for contributing.
it is that
clipboard object is already occupied by another application .
Now i want to copy my text or picture into clipboard and want to retrieve it as well while keeping anything which is in clipboard object before i used clipboard.
thx phReAk for contributing.
Set up another variable (or two a string and a picture) for storing the contents of the clipboard before you put yours in.
thx phReAk
Ok if it would be string i will store it in string variable..
But if it is neither picture nor text .. then ....??
would picturebox.picture will work in that situation ...?
Some time strange thing happen to me..
if i have not opened Vb IDE and copied some source code.. then open IDE and want to paste it ... Nothing apperars and PASTE button is disabled.
So i have to copy source while keeping Open IDE and then i m able to paste it..
So what is that ......
Check third line under command1 click event ...
and do the following.
copy some text from RTB and then ctrl +v it ..
and then click COPY TO CLIPBOARD ..
again when you will ctrl +V it will not display any picture instead it will display old text which u have copied by ctrl +c ..
i want to know
what 3rd line under command1 click event is doing in that case ..
y it is not working ..
Some time strange thing happen to me..
if i have not opened Vb IDE and copied some source code.. then open IDE and want to paste it ... Nothing apperars and PASTE button is disabled.
So i have to copy source while keeping Open IDE and then i m able to paste it..
So what is that ......
The developers of VB (or the VB IDE ?), built in (or left out) something.
There is a bug, which means it does not interact correctly with the clipboard.
I have noticed many times, that things aint there (in Clipboard) when I expect them.
I haven't been following the thread.
The bit I noticed and replied to, I suspected was an observation not directly related to this thread. I had seen confirmation that a bug existed, and I was just pointing that out.
I think it was not related to the solution you are talking about.
Ah ok. Has anyone checked the M$ website lately? Is there a service pack for the IDE or something to fix this bug? Sorry for the un-relevance (sp?) to this thread.
Check third line under command1 click event ...
and do the following.
copy some text from RTB and then ctrl +v it ..
and then click COPY TO CLIPBOARD ..
again when you will ctrl +V it will not display any picture instead it will display old text which u have copied by ctrl +c ..
i want to know
what 3rd line under command1 click event is doing in that case ..
y it is not working ..
***********
Now i have replace VBBitmap to vbCFBitmap ....
but same problem is persisting ...