PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
VB.NET - extended console library-VBForums
Results 1 to 4 of 4

Thread: VB.NET - extended console library

Threaded View

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    VB.NET - extended console library

    I just made this a while ago to use for one of my programs. I'd posted it in the VB.net section but I thought it's good to post it here also. The code isn't 100% mine... I used some C# projects and some old vb6 projects and converted them to vb.net.... sorry cant remember what and which parts though

    I'm copy pasting this from this post in the vb.net section:

    Lets you:
    -change the foreground or background color of the text
    -change the background color of the console (call SetCLSColor, and then the Clear function)
    -Change or read the title of the console
    -clear a console window
    -change the input mode of the console (call SetMode - whether it should read the input line by line, or to read every key stroke one by one)
    -move the cursor to any random position
    -enable/disable showing what the user types in the console ( call EchoInput )
    -get the size of the console window (number of columns and rows)
    -get the current position of the cursor
    -change the cursor type (the carret)
    -close the console whenever you want (FreeConsole() )
    -create a console by calling this class

    There are two classes, one is just a helper class to call the windows api functions, the other is the console class. I'll post them as separate posts since the code is long.

    -see next 2 posts for code.
    -see 3rd post for a sample.


    See the sample project if you want to know how to use this class library. (Remember that you have to add a reference to ConsoleEx.dll to your project before you can use it!)

    Extended console - source code: class library project
    Extended console - dll file only
    sample project (includes the class library project)
    Last edited by MrPolite; Jun 5th, 2005 at 04:56 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width