Solved

INS a Picture in the RTF Control

Posted on 1998-09-04
2
185 Views
Last Modified: 2010-04-30

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


0
Comment
Question by:shannon_cogan
2 Comments
 
LVL 1

Accepted Solution

by:
CarlosJac earned 40 total points
ID: 1433122
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
 
LVL 4

Expert Comment

by:mcix
ID: 1433123
RTF does not currently support pictures...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Macro which automatically send Excel spreadsheet to Outlook problem 2 61
VBA Shell can't Find Word document 11 76
Spell Check in VB6 13 99
Excel Automation VBA 19 38
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now