Click here to Skip to main content
15,905,563 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help Pin
Pete O'Hanlon17-May-12 9:13
mvePete O'Hanlon17-May-12 9:13 
GeneralRe: need help Pin
Kurac117-May-12 9:16
Kurac117-May-12 9:16 
GeneralRe: need help Pin
Pete O'Hanlon17-May-12 9:22
mvePete O'Hanlon17-May-12 9:22 
AnswerRe: need help Pin
Luc Pattyn17-May-12 11:57
sitebuilderLuc Pattyn17-May-12 11:57 
GeneralRe: need help Pin
fjdiewornncalwe17-May-12 11:16
professionalfjdiewornncalwe17-May-12 11:16 
QuestionNumericUpDown control increment value change Pin
Blubbo17-May-12 7:38
Blubbo17-May-12 7:38 
AnswerRe: NumericUpDown control increment value change Pin
OriginalGriff17-May-12 8:07
mveOriginalGriff17-May-12 8:07 
QuestionCannot Edit or Add Path to Reference File Pin
Xarzu17-May-12 6:47
Xarzu17-May-12 6:47 
AnswerRe: Cannot Edit or Add Path to Reference File Pin
Richard MacCutchan17-May-12 7:00
mveRichard MacCutchan17-May-12 7:00 
GeneralRe: Cannot Edit or Add Path to Reference File Pin
Xarzu17-May-12 7:31
Xarzu17-May-12 7:31 
AnswerRe: Cannot Edit or Add Path to Reference File Pin
Xarzu17-May-12 7:30
Xarzu17-May-12 7:30 
QuestionUser control as base class Pin
Ronny Portier17-May-12 4:50
Ronny Portier17-May-12 4:50 
AnswerRe: User control as base class Pin
BobJanova17-May-12 4:55
BobJanova17-May-12 4:55 
GeneralRe: User control as base class Pin
Ronny Portier17-May-12 5:27
Ronny Portier17-May-12 5:27 
AnswerRe: User control as base class Pin
RobCroll18-May-12 2:19
RobCroll18-May-12 2:19 
QuestionHow to read and insert files from Application directory in to Data base in C# Pin
ChandrakanthGaddam17-May-12 1:04
ChandrakanthGaddam17-May-12 1:04 
AnswerRe: How to read and insert files from Application directory in to Data base in C# Pin
Dave Kreskowiak17-May-12 2:13
mveDave Kreskowiak17-May-12 2:13 
AnswerRe: How to read and insert files from Application directory in to Data base in C# Pin
Luc Pattyn17-May-12 2:13
sitebuilderLuc Pattyn17-May-12 2:13 
QuestionDisposing GDI objects Pin
thalavi17-May-12 0:35
thalavi17-May-12 0:35 
AnswerRe: Disposing GDI objects Pin
Dave Kreskowiak17-May-12 2:10
mveDave Kreskowiak17-May-12 2:10 
AnswerRe: Disposing GDI objects Pin
Luc Pattyn17-May-12 2:11
sitebuilderLuc Pattyn17-May-12 2:11 
QuestionQuestion Related To Yesterdays Array of String..... Pin
glennPattonWork316-May-12 23:44
professionalglennPattonWork316-May-12 23:44 
Hi All,

Yesterday I asked the about the best way to handle strings in C# and got myself into and out of a hole. Today I have the result nicely in a rich Text Box with no spaces/awkward characters now I would like to search the List of data as I'm guessing this is more efficient than going through the text property of the rtb.

<pre lang="c#">
for (int i = 0; i <= NAME.Count - 1; i++)
{
richTextBox2.Text += NAME[i] + "\n";
} //loads the rtb!

bool exists = NAME.Exists(element => element == element);
MessageBox.Show(exists.ToString());</pre>

Vis Studio 2008 moans about comparing to itself ( a = a right?) the example I found was using integers so the line NAME.Exists(element => element > 10) translates as
element is set to equal element if element is greater than 10 so how do I convert this to use strings (my hopeful use of ToString() didn't seem to work!)
Glenn

(update: Hmm Code tags arn't working??)
AnswerRe: Question Related To Yesterdays Array of String..... Pin
BobJanova16-May-12 23:59
BobJanova16-May-12 23:59 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 0:13
professionalglennPattonWork317-May-12 0:13 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
BobJanova17-May-12 4:52
BobJanova17-May-12 4: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.