Dec 5th, 2004, 11:45 PM
#1
Thread Starter
Frenzied Member
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
Dec 6th, 2004, 03:57 AM
#2
Hyperactive Member
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
Forum Rules
Click Here to Expand Forum to Full Width