Results 1 to 4 of 4

Thread: WSYIWIG

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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 ??

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    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
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    ok, i will have a look

  4. #4
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204

    hey

    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
    WHat would we do with out Microsoft.
    A lot more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width