Results 1 to 8 of 8

Thread: VBcodes box! (Copying the codes in VBcodes box is annoying!)

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    10

    Exclamation VBcodes box! (Copying the codes in VBcodes box is annoying!)

    Hiiiiiiiiiiiiiiiiiiiiiiiii!

    I know a really annoying thing, when i look around in forum and i see peaples that have post codes in VBcode box! (dunno how to do it)
    Then when i check the code and gonna try the code on my application, then when i copy the code from VBcode box, and paste it to VB, then it wents to only 1 long line!

    A friend of me said that he tried put in the text in VBcode box and put it to Microsoft Word and then copy the text in Microsoft Word and paste it to VB!

    BUT I DID IT LIKe HE SAID! But when i do it, then i get the numbers, like

    1. Dim blabla as double = text1.text
    2. blabla = msgbox "blablablablabla",vbiconCricitcal, "BLABLABLAAAA"

    yah, something like that and so on! then i need to delete the 1. and all the space! and sometimes the codes wents crazy, so its not so easy to delete that!

    So what i need to do is to write the codes i see in VBforums on my own finger way, or i need to copy every line!
    (takes time if i take codes from codebank)


    So that i wonder if i can get this easlier!? if someone have/can make a program so it will take faster and easier!
    Or if just VBforums can fix this!

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBcodes box! (Copying the codes in VBcodes box is annoying!)

    There are some solutions (including programs) in this thread.

    Hopefully it will be corrected at some point.

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: VBcodes box! (Copying the codes in VBcodes box is annoying!)

    Here is the most simplest way to do it...

    Open the word file and simply paste the code which you copied from vbforums and then click the button "Convert". You will have your code

    please open the file in read only mode with macros enabled.

    Suggestions welcome

    PS: TESTED WITH VBCODE AND VB.NET CODE
    Attached Files Attached Files
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  4. #4

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VBcodes box! (Copying the codes in VBcodes box is annoying!)

    Quote Originally Posted by RhinoBull
    As pointed here the simplest way is to quote post and then simply copy code you need.
    And don't forget to cancel the "quote" once you are done copying it. Don't submit it.

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: VBcodes box! (Copying the codes in VBcodes box is annoying!)

    This has some advantages and disadvantages. It prevents those with an IQ of 5 from just copy and pasting solutions but it is a pain in the neck when you need to copy a couple of lines.

    Anyhow - I just don't use it so I don't subject others to the annoyance.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: VBcodes box! (Copying the codes in VBcodes box is annoying!)

    Quote Originally Posted by RhinoBull
    As pointed here the simplest way is to quote post and then simply copy code you need.
    And don't forget to cancel the "quote" once you are done copying it. Don't submit it.
    For this you need to login.... and I feel the above is a more lenghty process...

    In case one wants to pick up a code without login in, then one can opt to use the word document that I posted...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  8. #8

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