Click here to Skip to main content
15,927,946 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: how to programatically raise keyPress event of a user control? Pin
imak20-Jul-09 4:43
imak20-Jul-09 4:43 
QuestionHow to access the form controls in the thread Pin
K V Sekhar17-Jul-09 23:41
K V Sekhar17-Jul-09 23:41 
AnswerRe: How to access the form controls in the thread Pin
Luc Pattyn18-Jul-09 0:02
sitebuilderLuc Pattyn18-Jul-09 0:02 
GeneralRe: How to access the form controls in the thread Pin
K V Sekhar18-Jul-09 1:00
K V Sekhar18-Jul-09 1:00 
GeneralRe: How to access the form controls in the thread Pin
Luc Pattyn18-Jul-09 1:05
sitebuilderLuc Pattyn18-Jul-09 1:05 
QuestionXML DOM Support WINPE 1.6 Pin
AR Reddy16-Jul-09 0:26
AR Reddy16-Jul-09 0:26 
QuestionHelp for widows distributed application Pin
Zeeshan Riaz15-Jul-09 11:34
Zeeshan Riaz15-Jul-09 11:34 
QuestionRegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 18:57
Adam R Harris14-Jul-09 18:57 
***************************
For the record this is a cross-post.
I dont want to get anyone mad it's
just that i really need help with this
Original Post[^]
***************************

Hey All,

I am experiencing a strange issue, i have built and tested my RegEx in Expresso but when I call it from my code (C#) I am not getting any matches. If i step through and grab the values from the variables and put those in Expresso it works ....

RegEx:
<br />
Lead\sID\sNumber:\s*(?<LeadNumber>[^\r\n]*)(?:\r\n)+<br />
Prospect\sName:.*(?:\r\n)+<br />
Prospect\sContact:.*(?:\r\n)+<br />
Prospect\sPhone:.*(?:\r\n)+<br />
Marketing\sCampaign:.*(?:\r\n)+<br />
Prospect\sInformation:\s*(?:\r\n)+<br />
===============\s(?:\r\n)+<br />
(?<Company>[^\r\n]*)(?:\r\n)+<br />
(?<Address1>[^,]*),\s(?<Address2>[^\r\n]*)(?:\r\n)+<br />
(?<City>[^,]*),\s(?<State>[^\r\n]*)(?:\r\n)+<br />
(?<Country>[^,]*),\s(?<Zip>[^\r\n]*)(?:\r\n)+<br />
Contact\sName:\s*(?<FirstName>[^\s]*)\s(?<LastName>[^\r\n]*)(?:\r\n)+<br />
Contact\sPhone:\s*(?<Phone>[^\r\n]*)(?:\r\n)+<br />


C#:
<br />
MatchCollection myMatches = Regex.Matches([Text], [RegEx], RegexOptions.Multiline | RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.IgnorePatternWhitespace | RegexOptions.CultureInvariant);<br />


[Text] = the body of an email
[RegEx] = the above pattern

Any input or ideas would be greatly appreciated.
AnswerRe: RegEx not finding matches ... but it should Pin
Luc Pattyn15-Jul-09 2:22
sitebuilderLuc Pattyn15-Jul-09 2:22 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris15-Jul-09 7:49
Adam R Harris15-Jul-09 7:49 
GeneralRe: RegEx not finding matches ... but it should Pin
Luc Pattyn15-Jul-09 8:06
sitebuilderLuc Pattyn15-Jul-09 8:06 
QuestionContainer panel in user control (or clickable buttons at design time) Pin
Tomislav Plečko14-Jul-09 8:40
Tomislav Plečko14-Jul-09 8:40 
AnswerRe: Container panel in user control (or clickable buttons at design time) Pin
dan!sh 14-Jul-09 18:19
professional dan!sh 14-Jul-09 18:19 
AnswerRe: Container panel in user control (or clickable buttons at design time) Pin
BillWoodruff14-Jul-09 19:34
professionalBillWoodruff14-Jul-09 19:34 
AnswerRe: Container panel in user control (or clickable buttons at design time) Pin
Tomislav Plečko15-Jul-09 6:47
Tomislav Plečko15-Jul-09 6:47 
QuestionDelete hyperlink from crystal Report Pin
btough12-Jul-09 23:33
btough12-Jul-09 23:33 
QuestionProblem in Drag Drop data binding wizard in a master detail form with vs 2008 Pin
Suraj Chandran11-Jul-09 4:47
Suraj Chandran11-Jul-09 4:47 
AnswerRe: Problem in Drag Drop data binding wizard in a master detail form with vs 2008 Pin
Henry Minute11-Jul-09 5:53
Henry Minute11-Jul-09 5:53 
GeneralRe: Problem in Drag Drop data binding wizard in a master detail form with vs 2008 Pin
Suraj Chandran12-Jul-09 18:21
Suraj Chandran12-Jul-09 18:21 
GeneralRe: Problem in Drag Drop data binding wizard in a master detail form with vs 2008 Pin
Henry Minute13-Jul-09 0:16
Henry Minute13-Jul-09 0:16 
QuestionBlackjack Game Simulator Pin
pdntspad8029-Jul-09 16:49
pdntspad8029-Jul-09 16:49 
AnswerRe: Blackjack Game Simulator Pin
Luc Pattyn9-Jul-09 22:40
sitebuilderLuc Pattyn9-Jul-09 22:40 
GeneralRe: Blackjack Game Simulator Pin
DoctorMick10-Jul-09 4:59
DoctorMick10-Jul-09 4:59 
GeneralRe: Blackjack Game Simulator Pin
Luc Pattyn10-Jul-09 7:24
sitebuilderLuc Pattyn10-Jul-09 7:24 
NewsFront Runner supports software companies get compatible with Windows 7, Windows Server 2008 R2 Pin
brucedkyle8-Jul-09 14:22
brucedkyle8-Jul-09 14:22 

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.