Wait, do you mean add each line from a textfile as new listbox entry, or write each listbox entry to a textfile?
This is sudden guys but I need the code for adding listbox items per line at textboxes or a text file.
It will be for the log
Status: Unknown
Wait, do you mean add each line from a textfile as new listbox entry, or write each listbox entry to a textfile?
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
her is code. typed on mobile, first ever time i tried doing this :LCode:dim content As String = "" foreach item As string In listbox.Items textbox.Items.Add(item) content += item next if File.Exists("out.txt") then File.Delete("out.txt") end if File.WriteAllText("out.txt")
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Lyoto Machida (02-08-2011)
Let's say in the textbox the content is
then every line of it will appear in each item.Code:Content 1 Content 2 Content 3
Status: Unknown
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
nathanael890 (02-12-2011)
Actually He did it in reverse..
but I don't need it as I already know it.
I was looking for adding some items on every line on a textbox or a text file..
I think it includes the "Enter" button..
Status: Unknown
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
nathanael890 (02-12-2011)
I wasn't talking about you... It was from the other guy and I did a wrong grammar.. anyway,
the code works as you said... thanks for it..
I do also use this code that I found but more than codes than yours..
Thanks..Code:For Each Line As String In TextBox1.Lines ListBox1.Items.Add(Line) Next
Status: Unknown
Alright, marked as solved. No posting unless it's relevant and the thread is under a week old.
As for the code differences, addrange does pretty much the same thing as looping through the elements and adding them all, albeit tidier.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
nathanael890 (02-12-2011)