INS a Picture in the RTF Control


How would you show the CommonDialog Control,
asking for a picture file then displaying it in the
RTF Control?


shannon_coganAsked:
Who is Participating?
 
CarlosJacConnect With a Mentor Commented:
In your form put a richtextbox (RichTextBox1) and CommondDialog1
Use this code:

Private Sub RichTextBox1_DblClick()
    With CommonDialog1
        .Filter = ("bitmap (*.bmp)|*.bmp")
        .ShowOpen
    End With
    RichTextBox1.OLEObjects.Add , , CommonDialog1.filename

End Sub
0
 
mcixCommented:
RTF does not currently support pictures...
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.