Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

file creation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yoshitha - 19 Oct 2004 14:20 GMT
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
Peter van der Goes - 19 Oct 2004 15:24 GMT
> Hi,
>       In my application am using scrpting.dll to create folders and files.
[quoted text clipped - 14 lines]
> 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.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.