M
M
MrMastire2022-03-08 15:38:22
C++ / C#
MrMastire, 2022-03-08 15:38:22

How to save content and data of richTextBox to file?

How can you save the contents of a text box to a file ? That is, so that all the pictures inserted into it and the font settings, their color, pictures , etc. are saved there. So that the next time you open this file, both pictures and text settings (font, color, pictures) are opened.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2022-03-08
@Morpheus_God

I think that we need to "invent" our own format for storing information, where there will be data about the picture, text and its embellishments.
Create some class or structure where to describe the format of your file.
And with the help of serialization to save.
As an example, you can see how pdf is released for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question