i'm trying to make a WSYIWIG editor in vb using the richtextbox, is it possibe to insert a picture into the textbox or to use the ole object ??
Printable View
i'm trying to make a WSYIWIG editor in vb using the richtextbox, is it possibe to insert a picture into the textbox or to use the ole object ??
Hi PsyVision,
I have asked the same question few minutes ago but no one answered so far.
I have some code which works. The problem with my code is that it inserts the picture and the Opens the picture for editing, which i dont want.
If you manage to find out how to do this properly please let me know.
Here is the code
Code:Dim temp
Dim filename As String
cmnDlg.Filter = "Image Files |*.bmp;*.gif;*.*jpg;*.jpeg;*.tif;*.wmf"
cmnDlg.ShowOpen
temp = cmnDlg.filename
If temp = cdlcance Then Exit Sub
On Error GoTo myErr:
If temp <> "" Then
filename = temp
RichTextBox1.OLEObjects.Add , , filename
End If
myErr:
If Err.Number <> 0 Then
MsgBox Err.Description
End If
ok, i will have a look
if you have vb6 ent you have a control called sonthing like dhtml editor well taht is wysiwyg so just try to use that it suports table
and alot more like images and all so look for that later