Click here to Skip to main content
15,887,432 members
Home / Discussions / C#
   

C#

 
AnswerRe: To Add a User to Windows programtically Pin
Shajeel3-Aug-06 21:10
Shajeel3-Aug-06 21:10 
QuestionoledBconnection error Pin
skyeddie3-Aug-06 19:27
skyeddie3-Aug-06 19:27 
AnswerRe: oledBconnection error Pin
Expert Coming3-Aug-06 19:47
Expert Coming3-Aug-06 19:47 
GeneralRe: oledBconnection error Pin
skyeddie3-Aug-06 20:01
skyeddie3-Aug-06 20:01 
GeneralRe: oledBconnection error Pin
Expert Coming3-Aug-06 20:30
Expert Coming3-Aug-06 20:30 
Questionhi Pin
santhoshalakshmi3-Aug-06 18:42
santhoshalakshmi3-Aug-06 18:42 
AnswerRe: hi Pin
Expert Coming3-Aug-06 19:07
Expert Coming3-Aug-06 19:07 
QuestionMethod Returns Twice Pin
Expert Coming3-Aug-06 18:18
Expert Coming3-Aug-06 18:18 
This method returns the string twice! How?

public string UniversalRegEx(string szMyRegEx, string szWhatFor, string szWhatThrough)
{
//The universal RegEx
//Set it (Query, What it will put as a heading)
Regex rxFind = new Regex((szMyRegEx), RegexOptions.IgnoreCase);

MatchCollection matches = rxFind.Matches(szWhatThrough);

foreach(Match m in matches)
{
szInformation = (szWhatFor + ": " + m.Groups["mmatch"]);
}
return szInformation;
}

I am stuck on this. I use this method and it works, but when I have it search for Residence, it returns szInformation twice some how. Is there a ghost in the code?

Thanks for your time.

The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.

AnswerRe: Method Returns Twice Pin
Guffa3-Aug-06 19:02
Guffa3-Aug-06 19:02 
GeneralRe: Method Returns Twice Pin
Expert Coming3-Aug-06 19:06
Expert Coming3-Aug-06 19:06 
GeneralRe: Method Returns Twice Pin
Daniel Turini3-Aug-06 20:21
Daniel Turini3-Aug-06 20:21 
AnswerRe: Method Returns Twice Pin
Guffa5-Aug-06 13:36
Guffa5-Aug-06 13:36 
QuestionRe: Method Returns Twice Pin
Shajeel3-Aug-06 20:20
Shajeel3-Aug-06 20:20 
AnswerRe: Method Returns Twice Pin
Expert Coming3-Aug-06 20:27
Expert Coming3-Aug-06 20:27 
GeneralRe: Method Returns Twice Pin
Shajeel3-Aug-06 20:38
Shajeel3-Aug-06 20:38 
GeneralRe: Method Returns Twice [modified] Pin
lmoelleb3-Aug-06 20:44
lmoelleb3-Aug-06 20:44 
AnswerRe: Method Returns Twice Pin
Christian Graus3-Aug-06 20:52
protectorChristian Graus3-Aug-06 20:52 
GeneralRe: Method Returns Twice Pin
Expert Coming3-Aug-06 21:31
Expert Coming3-Aug-06 21:31 
GeneralRe: Method Returns Twice Pin
Guffa5-Aug-06 13:45
Guffa5-Aug-06 13:45 
AnswerRe: Method Returns Twice Pin
leppie3-Aug-06 21:30
leppie3-Aug-06 21:30 
QuestionProblem including C++ code in C# assembly Pin
OrcBighter23-Aug-06 15:49
OrcBighter23-Aug-06 15:49 
AnswerRe: Problem including C++ code in C# assembly Pin
Christian Graus3-Aug-06 16:31
protectorChristian Graus3-Aug-06 16:31 
QuestionCreate Combo Box In ListView in Pocket PC App. Pin
kakarato3-Aug-06 15:44
kakarato3-Aug-06 15:44 
QuestionFree Database for .NET Pin
Tyler453-Aug-06 15:22
Tyler453-Aug-06 15:22 
AnswerRe: Free Database for .NET Pin
Furty3-Aug-06 15:49
Furty3-Aug-06 15:49 

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.