Solved

INS a Picture in the RTF Control

Posted on 1998-09-04
2
187 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

785 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