Results 1 to 2 of 2

Thread: Auto Complete Combo

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Auto Complete Combo

    Hi all,

    Attached here is a C# Test Project and Control Project. Control is basically the Auto Complete Multi Line Combobox control. When user selected an item from the drop down which is with carriage return, I need to replace carriage return with a single space.

    Any ideas ??

    Thanks.
    Attached Files Attached Files

  2. #2
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Re: Auto Complete Combo

    Is this what you are looking for?

    Code:
    string text = textBox5.Text;
    text = text.Replace("\r\n"," ");
    textBox5.Text = text;
    I have tried with a multiline Textbox and it worked!
    Maybe you need to ad
    using System.Text.RegularExpressions;
    to your code file!
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

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