Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Extending RichTextBox's LoadFile/SaveFile functions

Extending RichTextBox's LoadFile/SaveFile functions

Scheduled Pinned Locked Moved Visual Basic
csharpc++tutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TPR25
    wrote on last edited by
    #1

    I was pretty disappointed when I first looked over the RichTextbox component and seen that they didn't include UTF-8 as one of the Format Options (since it is available in V 3 of the control). What I'd like to do is extend the loadfile/save file function by creating a class or module that contructs the RichEdit's EditCallback function so that I can then use SendMessage to Streamin and Streamout the data. I've done this before in VB6 -- but I can't seem to get the code to work in vb.net because I don't understand how to generate the EDITSTREAM structure. I'd like to pass a filestream handle into the Callback, but I can't figure out how to create the EDITSTREAM structure so that dwCookie will allow the handler and then how to use that handler in the Callback. I'm wonder if anyone here has done something like this (or maybe has C# or C++ code that they wouldn't mind sharing -- or better yet, coverting) or maybe knows of another way that I could load UTF8 data into a RichTextbox. Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups