dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: VB6-viewing large files in text window

  1. #1
    Join Date
    Oct 2010
    Location
    North Yorkshire
    Posts
    21

    VB6-viewing large files in text window

    Hi
    I have a project which I am modifying. Currently if I view a file and it is larger than around 32k, I have an error. Method I am using is a basic text box. scrollbars automatic etc

    I want to be able to view a file which could be as large as 20k of text.

    Viewer to be in its own form with a text box . I need to be able to pass either a file name with paths etc or possibly a string from within another form.

    It's many years since I did any programming and I'm rusty as ****.

    Any assistance appreciated.

    Using Windows XP, SP3, VB6 Pro from when it came out.

  2. #2
    Join Date
    Oct 2010
    Location
    North Yorkshire
    Posts
    21

    They obvious typo...20K should be 200K

    Quote Originally Posted by BigKev557 View Post
    Hi
    I have a project which I am modifying. Currently if I view a file and it is larger than around 32k, I have an error. Method I am using is a basic text box. scrollbars automatic etc

    I want to be able to view a file which could be as large as 20k of text.

    Viewer to be in its own form with a text box . I need to be able to pass either a file name with paths etc or possibly a string from within another form.

    It's many years since I did any programming and I'm rusty as ****.

    Any assistance appreciated.

    Using Windows XP, SP3, VB6 Pro from when it came out.
    Ooops, typo above 20K should read 200K...
    the files are results from data searches...

    cheers

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Welcome to DevX

    Use a Richtextbox rather than a standard textbox. That will do the trick for you.

  4. #4
    Join Date
    Oct 2010
    Location
    North Yorkshire
    Posts
    21
    Thanks for that, I'd completely forgotten. I did say I was rusty HI...

    First thing I did was view a file larger than I thought 580k, it took a while but it worked fine.

    Thanks again, it helped a lot.

    Regards

Similar Threads

  1. Replies: 1
    Last Post: 01-22-2009, 06:53 PM
  2. Replies: 0
    Last Post: 12-20-2005, 06:29 AM
  3. Creating DSN to text files using VB code
    By Filipo Novo Mór in forum VB Classic
    Replies: 0
    Last Post: 09-27-2001, 08:39 AM
  4. Double Text 1.0
    By George Gilbert in forum vb.announcements
    Replies: 0
    Last Post: 08-19-2001, 11:34 AM
  5. Win 2000 File Server - Large numbers of files
    By Andy Cortwright in forum Enterprise
    Replies: 1
    Last Post: 07-30-2001, 11:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center