Click here to Skip to main content
15,886,065 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 5:37
professionalglennPattonWork317-May-12 5:37 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 1:05
professionalglennPattonWork317-May-12 1:05 
AnswerRe: Question Related To Yesterdays Array of String..... Pin
Luc Pattyn17-May-12 2:17
sitebuilderLuc Pattyn17-May-12 2:17 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 2:28
professionalglennPattonWork317-May-12 2:28 
AnswerRe: Question Related To Yesterdays Array of String..... Pin
Luc Pattyn17-May-12 2:59
sitebuilderLuc Pattyn17-May-12 2:59 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 3:12
professionalglennPattonWork317-May-12 3:12 
AnswerRe: Question Related To Yesterdays Array of String..... Pin
Luc Pattyn17-May-12 3:27
sitebuilderLuc Pattyn17-May-12 3:27 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 3:30
professionalglennPattonWork317-May-12 3:30 
AnswerRe: Question Related To Yesterdays Array of String..... Pin
Luc Pattyn17-May-12 3:35
sitebuilderLuc Pattyn17-May-12 3:35 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 3:39
professionalglennPattonWork317-May-12 3:39 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
BobJanova17-May-12 4:53
BobJanova17-May-12 4:53 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
Luc Pattyn17-May-12 4:56
sitebuilderLuc Pattyn17-May-12 4:56 
AnswerRe: Question Related To Yesterdays Array of String..... Pin
PIEBALDconsult17-May-12 3:19
mvePIEBALDconsult17-May-12 3:19 
GeneralRe: Question Related To Yesterdays Array of String..... Pin
glennPattonWork317-May-12 3:26
professionalglennPattonWork317-May-12 3:26 

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.