By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,686 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,686 IT Pros & Developers. It's quick & easy.

file creation

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"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.
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.