Results 1 to 13 of 13
  1. #1
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored

    [TuT]How to use ControlsChars.CrLf

    This is a TuT on how to use ControlChars.CrLf. Credits to my Reference book.

    Occasionally we need to break up the MessageBox or other text messages into multiple lines. Visual Basic provides many classes with a few constants that can be used to accomplish this task. Let's take a look at some of the constants and apply them.
    The ControlChars module has many constants that can be used in order to control the output. Once you use it, a new instasnce of Microsoft.VisualBasic.ControlChars will be initialized. Here are some of the members of this class:

    ControlChars.CrLf: Carriage Control and Linefeed
    ControlChars.Cr: Carrage return
    ControlChars.Lf: Linefeed
    ControlChars.NewLine: New line
    ControlChars.Back Backspace

    Here's an example of using these ! Note: I am improvising here, as the original sample code was written in VB6! Please correct me if i do something wrong.

    [PHP]MsgBox("You have unsaved data" & Microsoft.VisualBasic.ControlChars.Back & "Quit Now?", _
    "Save Data", MsgBoxStyle.YesNo, _
    MsgBoxIcon, Information)[/PHP]

    I will be writing up a more detailed tutorial on ControlChars in using it in a more complex manner. Please press Thanks if you found this useful!

  2. The Following 2 Users Say Thank You to Invidus For This Useful Post:

    mnpeepno2 (04-02-2010),Spookerzz (04-02-2010)

  3. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Thanks for sharing


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. #3
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by NextGen1 View Post
    Thanks for sharing
    true dat !!!



  5. #4
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Lol thanks guys !

  6. #5
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    You don't even use ControlChars.CrLf in the sample code. You use ControlChars.Back
    Assembly Programmer

  7. #6
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Doesn't matter, you should understand the concept anyway.

    Edit: Yay 900 posts!

  8. #7
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    this is a good tut


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  9. #8
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Thanks Mnpeepno!
    Good for learning!

  10. #9
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    I would really appreciate it if everyone gathered all their tuts and sent them to me in VM

    This one can really be in Snippets Water - Ill add it to snippets soon


     


     


     



    The Most complete application MPGH will ever offer - 68%




  11. #10
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Alright Thanks NextGen! And i'll be doing a more detailed Tutorial about this soon =D

  12. #11
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Well Done, Nice tutorial, Very detailed.
    I'm back.

  13. #12
    Pixipixel_'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    VCExpress.exe || France :D
    Posts
    2,087
    Reputation
    27
    Thanks
    742
    My Mood
    Cool
    Thanks for sharing =P

  14. #13
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Welcome all =D. Glad everyone liked it :P

Similar Threads

  1. [Prac]How to use ControlsChars.CrLf Pt2
    By Invidus in forum Visual Basic Programming
    Replies: 9
    Last Post: 04-02-2010, 06:30 PM
  2. [TUT] How to use kssn GENERATOR
    By ktalin91 in forum WarRock Korea Hacks
    Replies: 13
    Last Post: 05-10-2009, 07:17 PM
  3. Replies: 34
    Last Post: 03-16-2009, 09:16 AM
  4. (in-depth Video tut) how to use chams/wallhack with bypass
    By hiiway in forum Combat Arms Hacks & Cheats
    Replies: 23
    Last Post: 08-30-2008, 12:32 AM
  5. [TUT] How to use these forums? wip
    By smartie in forum General
    Replies: 43
    Last Post: 08-06-2007, 10:18 AM