Results 1 to 11 of 11

Thread: [RESOLVED] Really dumb VBcode box!

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    55

    Resolved [RESOLVED] Really dumb VBcode box!

    Hi,
    I'm getting very irritated at the VBcode box in this forum.
    Let's say I have a box like this with some random code:

    vb Code:
    1. Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
    2.     Dim IntSelStart As Integer
    3.     IntSelStart = Text1.SelStart
    4.    
    5.     Text1.Text = Replace(Text1.Text, "b", "q")
    6.     Text1.SelStart = IntSelStart
    7. End Sub

    Then if I want to copy this, and use in my project, I select the whole text and press ctrl+c... however, when i paste it into vb:

    vb Code:
    1. 1.
    2.       Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
    3.    2.
    4.           Dim IntSelStart As Integer
    5.    3.
    6.           IntSelStart = Text1.SelStart
    7.    4.
    8.          
    9.    5.
    10.           Text1.Text = Replace(Text1.Text, "b", "q")
    11.    6.
    12.           Text1.SelStart = IntSelStart
    13.    7.
    14.       End Sub

    It adds numbers to every two lines, which I have to remove manually, line by line... And if it was a big chunk of code I copied, this would take a while.

    So I wonder, can't anybody remove the stupid numbers???
    //¤dark
    Dinmamma.Fat = True

  2. #2
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: Really dumb VBcode box!

    Seems like that might be what Martin Liss has addressed already.
    I don't know for sure though.

    So, you C&P alot of the code here?

    -Lou

  3. #3
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Really dumb VBcode box!

    This link gives you a couple of solutions.

  4. #4
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: Really dumb VBcode box!

    That talks about the runinline issue.
    Does that also solve the numbering isue?

    [edit]
    "...remove the numbering..."
    [/edit]

    Ahhh, there you go!


  5. #5

  6. #6
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Really dumb VBcode box!

    Just for those of you who hate using the Highlight tags here is a link i got from Penagate it is a wonderful application that allows you to have color syntax and use the Code tags instead

    Coloring your code in vBulletin Posts

  7. #7

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    55

    Re: Really dumb VBcode box!

    Okay, It's really a pity that those old [VBCODE] tags disappeared...
    And I don't really want to use MartinLiss's Cpoy/Paste add-in as I hate having unnessesary processes running in the background... I'll just copy it to wordpad first, didn't know one could do that.
    //¤dark
    Dinmamma.Fat = True

  8. #8
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Really dumb VBcode box!

    Quote Originally Posted by henzino2
    Okay, It's really a pity that those old [VBCODE] tags disappeared...
    And I don't really want to use MartinLiss's Cpoy/Paste add-in as I hate having unnessesary processes running in the background... I'll just copy it to wordpad first, didn't know one could do that.
    There is no "unnessesary processes running in the background". My two apps briefly use Word to process the copied data and then they close it. That's similar to (but easier) than you manually using wordpad.

  9. #9
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: Really dumb VBcode box!

    Quote Originally Posted by henzino2
    Okay, It's really a pity that those old [VBCODE] tags disappeared...
    And I don't really want to use MartinLiss's Cpoy/Paste add-in as I hate having unnessesary processes running in the background... I'll just copy it to wordpad first, didn't know one could do that.
    Easiest of all is to hit the "Reply with Quote" button and copy the code you want from the reply window.

  10. #10

    Thread Starter
    Member
    Join Date
    Jun 2006
    Posts
    55

    Re: [RESOLVED] Really dumb VBcode box!

    Okay, thank you all ^^
    //¤dark
    Dinmamma.Fat = True

  11. #11
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: [RESOLVED] Really dumb VBcode box!

    Good tip there Ellis

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