he I have a richtextbox and When I type msg.show "messgehere" I want to to show whats in the quotes as a messege box text
Do you even bother searching first?
c sharp escape characters - Google Search
Do you ever learn the basics of any language?
[highlight=C#]
MessageBox.Show("Hello this is a message, I am very VERY easy to create with basic knowledge");
[/highlight]
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)
Messagebox.Show(Richtextbox1.Text); ????
Is this what u mean?
Ooooooh, I think I get it now.
[highlight=c#]
string plainText = richTextBox1.Text;
int firstPt = plainText.ToLower().IndexOf("msgbox.show \"") + "msgbox.show \"".Length;
int lastPt = plainText.ToLower().IndexOf("\"", firstPt);
MessageBox.Show(plainText.Substring(firstPt, lastPt - firstPt));
[/highlight]
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)