Place icons in rich text box....like messenger....

Pretty straight forward question...if you have any ideas or working protoypes I'd love to hear from you...If you feel it deserves more points, let me know.

Thanks,
Glen
GMorganAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
glass_cookieConnect With a Mentor Commented:
Hi!

Have you tried adding the line:

, vbCFBitmap

After that line with the error?

That's it!

glass cookie : )
0
 
glass_cookieCommented:
Hi!

Here's a file for you over the net:

Download...
http://www.vb-helper.com/HowTo/pasterch.zip
Description: Paste a picture into a RichTextBox (37K)

If you're programming a chat application, you could send a particular string indicating a picture, then your proggy would load that particular picture into the textbox.

That's it!

glass cookie : )
0
 
GMorganAuthor Commented:
I like the idea but when I run the program I get err.num 460 invalid clipboard format...any suggestions?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
GMorganAuthor Commented:
it happens on the line
Clipboard.SetData Picture1.Picture
0
 
glass_cookieCommented:
Hi!

I'll check it out and return to you after some time : )

That's it!

g;ass cookie ; )
0
 
glass_cookieCommented:
Hi!

That file works fine on my system : )

Well, you may want to change that line to:

Clipboard.SetData Picture1.Picture, vbCFBitmap

and see if that works or not : )

That's it!

glass cookie ; )
0
 
glass_cookieCommented:
Hi!

Here's another piece of coding if you're uncomfortable with APIs:

Private Sub Command1_Click()
Clipboard.Clear
Clipboard.SetData LoadPicture("C:\Windows\Clouds.bmp"), vbCFBitmap
RichTextBox1.SetFocus
SendKeys "^v", True
End Sub

That's it!

glass cookie : )
0
 
GMorganAuthor Commented:
it happens on the line
Clipboard.SetData Picture1.Picture
0
 
DanRollinsCommented:
Hi GMorgan,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept glass_cookie's comment(s) as an answer.

GMorgan, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.