|
-
Aug 11th, 2007, 06:35 PM
#1
Thread Starter
Member
[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:
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
Dim IntSelStart As Integer
IntSelStart = Text1.SelStart
Text1.Text = Replace(Text1.Text, "b", "q")
Text1.SelStart = IntSelStart
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.
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
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
-
Aug 11th, 2007, 07:01 PM
#2
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
-
Aug 11th, 2007, 07:03 PM
#3
Re: Really dumb VBcode box!
This link gives you a couple of solutions.
-
Aug 11th, 2007, 07:08 PM
#4
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!
Last edited by NotLKH; Aug 11th, 2007 at 07:16 PM.
-
Aug 11th, 2007, 07:23 PM
#5
Re: Really dumb VBcode box!
You can use either the Copy/Paste VB Code or the Paste VB Code Add-In links in my signature to solve the problem.
-
Aug 12th, 2007, 04:23 AM
#6
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
-
Aug 12th, 2007, 04:45 AM
#7
Thread Starter
Member
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
-
Aug 12th, 2007, 08:44 AM
#8
Re: Really dumb VBcode box!
 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.
-
Aug 12th, 2007, 02:17 PM
#9
Re: Really dumb VBcode box!
 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.
-
Aug 12th, 2007, 05:11 PM
#10
Thread Starter
Member
Re: [RESOLVED] Really dumb VBcode box!
//¤dark
Dinmamma.Fat = True
-
Aug 12th, 2007, 07:37 PM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|