Results 1 to 7 of 7
  1. #1
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed

    messege box text = what is in quotes

    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

  2. #2
    SERG's Avatar
    Join Date
    May 2010
    Gender
    female
    Posts
    41
    Reputation
    8
    Thanks
    8
    Quote Originally Posted by tremaster View Post
    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
    Use this escape character.
    Code:
    '\"'

  3. #3
    tremaster's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    523
    Reputation
    10
    Thanks
    95
    My Mood
    Amazed
    ? .

  4. #4
    SERG's Avatar
    Join Date
    May 2010
    Gender
    female
    Posts
    41
    Reputation
    8
    Thanks
    8
    Do you even bother searching first?

    c sharp escape characters - Google Search

  5. #5
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    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]

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    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)

  6. #6
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Messagebox.Show(Richtextbox1.Text); ????
    Is this what u mean?

  7. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    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]

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    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)