Click here to Skip to main content
16,005,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ajax slowing my search??? Pin
Larantz12-Jul-07 12:09
Larantz12-Jul-07 12:09 
GeneralRe: Ajax slowing my search??? Pin
Chris McGlothen12-Jul-07 12:57
Chris McGlothen12-Jul-07 12:57 
GeneralRe: Ajax slowing my search??? Pin
Steve Echols12-Jul-07 15:32
Steve Echols12-Jul-07 15:32 
GeneralRe: Ajax slowing my search??? Pin
Chris McGlothen13-Jul-07 6:04
Chris McGlothen13-Jul-07 6:04 
GeneralRe: Ajax slowing my search??? Pin
Steve Echols13-Jul-07 6:14
Steve Echols13-Jul-07 6:14 
GeneralRe: Ajax slowing my search??? Pin
Larantz13-Jul-07 0:21
Larantz13-Jul-07 0:21 
GeneralRe: Ajax slowing my search??? Pin
Chris McGlothen13-Jul-07 4:34
Chris McGlothen13-Jul-07 4:34 
QuestionHelp with a search & replace Pin
rbuchana12-Jul-07 5:51
rbuchana12-Jul-07 5:51 
I have a text box & a property window.
The text box is read-only and displays C code. As the users change properties the C-code changes respectively. I've implemented this using Regex's replace function. However it is really really slow. Here's what I have

private void updateCCodeTextBoxWorker(int address, string name)
{
    cCodeTextBox.SuspendLayout();

    string pattern = name + @", 0x..";
    string replace = String.Format("{0}, 0x{1:X2}", name, regData[address]);
    Regex rgx = new Regex(pattern);

    cCodeTextBox.Text = rgx.Replace(cCodeTextBox.Text, replace);

    cCodeTextBox.ResumeLayout();
}


The string "name" is basically what I'm searching for and "regData[address]" is the value that's changing.

Is there a better way to do this? How can I make it faster?

Thanks,
--RB
AnswerRe: Help with a search & replace Pin
User 665812-Jul-07 6:06
User 665812-Jul-07 6:06 
AnswerRe: Help with a search & replace Pin
Luc Pattyn12-Jul-07 6:12
sitebuilderLuc Pattyn12-Jul-07 6:12 
QuestionProblem Connecting to MQ on unix from .NET application Pin
unnamed00712-Jul-07 4:51
unnamed00712-Jul-07 4:51 
QuestionString containing digit or Alphabet Pin
t4ure4n12-Jul-07 4:33
t4ure4n12-Jul-07 4:33 
AnswerRe: String containing digit or Alphabet Pin
User 665812-Jul-07 4:43
User 665812-Jul-07 4:43 
AnswerRe: String containing digit or Alphabet Pin
Luc Pattyn12-Jul-07 4:45
sitebuilderLuc Pattyn12-Jul-07 4:45 
AnswerRe: String containing digit or Alphabet Pin
Christian Graus12-Jul-07 4:53
protectorChristian Graus12-Jul-07 4:53 
QuestionIOException Problem... Pin
Andy Spier12-Jul-07 4:23
Andy Spier12-Jul-07 4:23 
AnswerRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 4:28
sitebuilderLuc Pattyn12-Jul-07 4:28 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 4:33
Andy Spier12-Jul-07 4:33 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 4:52
sitebuilderLuc Pattyn12-Jul-07 4:52 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 4:59
Andy Spier12-Jul-07 4:59 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 5:18
sitebuilderLuc Pattyn12-Jul-07 5:18 
GeneralRe: IOException Problem... Pin
Andy Spier12-Jul-07 5:27
Andy Spier12-Jul-07 5:27 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 5:50
sitebuilderLuc Pattyn12-Jul-07 5:50 
GeneralRe: IOException Problem... Pin
Luc Pattyn12-Jul-07 5:54
sitebuilderLuc Pattyn12-Jul-07 5:54 
AnswerRe: IOException Problem... Pin
martin_hughes12-Jul-07 10:52
martin_hughes12-Jul-07 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.