"yoshitha" <gu**********@rediffmail.com> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Hi,
In my application am using scrpting.dll to create folders and files.
using filesystemobject's createtextfile method am creating file. and am
displaying all the folders and their corrsponding files in the treeview
control. and when i select a file and dbl click this file it will list out
the file contents into richtextbox.
and for checking purpose i insertd an image into that file and while dbl
clicking that file it is displaying only the text not the image but i want
to display the image also.
How can i display hte file containg the image.
here am creating file using creattextfile.
can anybody tell me how to create a file so that if that file contins
images those must be displayed into rihtext box.
Plz tell its urgent
thanx inadvance
I suggest you read the help article "Accessing Files With FileSystemObject"
which says in part:
<quote>
The FSO model, contained in the Scripting type library (Scrrun.dll),
supports the creation and manipulation of text files through the TextStream
object; however, the FSO model does not support binary files. To manipulate
binary files, use the FileOpen Function with the Binary keyword.
<unquote>
I believe you need a binary file for the image? Also, it appears that you
won't be able to display an image directly within a Rich Text Box, but will
have to use a PictureBox or something similar, as a child of the RichTextBox
(in its Controls collection) to display the image
Just my best guess.
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.