Results 1 to 4 of 4

Thread: WYSIWYG editor

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    WYSIWYG editor

    Anyone know the best approach to creating a simple WYSIWYG editor for a custom file

    It basically uses
    ~B - Bold
    ~F - Fixed Width Font
    ~1-9 - Colors

    IE: ~B~1Bold Green~B ~2Regular Yellow ~FFixed Width Yellow ~3~FRegular Red

    Now I originally though of just parsing a RTF file and exporting the plain textfile which works but is hella slow... anyone have a better method?
    If wishes were fishes we'd all cast nets.

  2. #2
    Addicted Member Sheppe's Avatar
    Join Date
    Sep 2002
    Location
    Kelowna, BC
    Posts
    245
    Create a class that represents your custom file then serialize it to a binary file. Read up on serialization in MSDN.
    [vbcode]
    On Error Goto Hell
    [/vbcode]
    Sheppe Pharis, MCSD
    Check out http://www.vb-faq.com
    Click here for access to the free Code-Express source code and component sharing network for VB6
    Want a better way to skin your .NET applications? Click here!

  3. #3
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    You could easily display this with a richtextbox, and override the save / load functions.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  4. #4

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    I'm not too familiar with overriding in vb.net, got any links to tutorials?
    If wishes were fishes we'd all cast nets.

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