Results 1 to 5 of 5

Thread: [VB2008] Code TextBox

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    3

    [VB2008] Code TextBox

    Hello!, Long time lurker first time poster.

    Current Features
    • Adds/removes line numbers per line length of the editable text-box
    • Scroll Sync between line numbers and editable text-box


    ToDo List (Would love some Help)
    • Colors for certain words like (Sub, If, Public and so on)
    • Indentation for new lines within certain parameters


    Current Bugs/Problems
    • Starts to lag at 700~ lines of code (May just be my PC) ::Please Report Back


    Instructions
    • Download/Extract
    • Add items to your project
    • Build and add CodeTextBox via Toolbox to your Form
    • Edit start up text value via codeText under Misc in Properties.


    Please C&C, Post any code improvements you can think of I'm only a beginner to VB so still learning

    Thank You
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by nikkoleth; Feb 25th, 2010 at 11:24 AM. Reason: Add ZIP

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: [VB2008] Code TextBox

    Could you attach it as a zip file and not a rar file, I don't have a new enough version of WinZip to open rar files and company policy doesn't let me install WinRar.

    The screenshot looks pretty good, have you considered modifying a RichTextBox? RTB's allow words to be different colors. Syntax highlighting...
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    3

    Re: [VB2008] Code TextBox

    hey sorry, added a zip file as requested.

    At the moment I am using a rich text box but haven't gone into much depth to them was trying to get the main features down

    Will look into it thanks

  4. #4
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: [VB2008] Code TextBox

    Thanks for the zip file. Well it's a good control, no lag seems to work just fine.

    When I created a new project and added the control, I had to fix two things. Turn Option Explicit On and Option Strict On and you'll see them.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    3

    Re: [VB2008] Code TextBox

    Hmm, still seems laggy on my computer...

    and yes I noticed the 2 errors re-uploaded a new zip with minor fix CStr()

    Edit
    Tested on a newer computer seems to run fine until 2000~ lines of code from copy paste
    before it dies out and am able to get to 5000~ lines by just holding down enter before it starts to jitter.
    Last edited by nikkoleth; Feb 26th, 2010 at 04:20 AM. Reason: Laggy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width