Click here to Skip to main content
16,017,857 members
Home / Discussions / C#
   

C#

 
GeneralRe: Associate File Extension Pin
Bone200325-Jul-07 3:20
Bone200325-Jul-07 3:20 
AnswerRe: Associate File Extension Pin
PhilDanger25-Jul-07 3:39
PhilDanger25-Jul-07 3:39 
GeneralRe: Associate File Extension Pin
Bone200325-Jul-07 3:49
Bone200325-Jul-07 3:49 
AnswerRe: Associate File Extension Pin
Pete O'Hanlon25-Jul-07 3:47
mvePete O'Hanlon25-Jul-07 3:47 
GeneralRe: Associate File Extension Pin
Bone200325-Jul-07 3:59
Bone200325-Jul-07 3:59 
GeneralRe: Associate File Extension Pin
Pete O'Hanlon25-Jul-07 4:44
mvePete O'Hanlon25-Jul-07 4:44 
Questionhow to check if an item is within a listbox Pin
Daniel_Logan25-Jul-07 2:25
Daniel_Logan25-Jul-07 2:25 
AnswerRe: how to check if an item is within a listbox Pin
Justin Perez25-Jul-07 2:35
Justin Perez25-Jul-07 2:35 
I am assuming you are trying to see if a string is within a listbox. You need to Iterate through the list collection, and do string comparision. If they are ==, then enable the button. Hope this helps.

<br />
string strSearchString = string.Empty;<br />
strSearchString = "SearchText";<br />
<br />
for(int i =0; i < myList.Items.Count; i++)<br />
{<br />
if(strSearchText == myList.Items[i].ToString())<br />
{<br />
btnMyButton.Enabled = true;<br />
}<br />
}<br />


I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

GeneralRe: how to check if an item is within a listbox Pin
Daniel_Logan25-Jul-07 3:12
Daniel_Logan25-Jul-07 3:12 
GeneralRe: how to check if an item is within a listbox Pin
Justin Perez25-Jul-07 3:26
Justin Perez25-Jul-07 3:26 
QuestionConsole Application Busy Cursor Pin
Harkamal Singh25-Jul-07 2:15
Harkamal Singh25-Jul-07 2:15 
AnswerRe: Console Application Busy Cursor Pin
PhilDanger25-Jul-07 7:23
PhilDanger25-Jul-07 7:23 
QuestionRe: Console Application Busy Cursor Pin
Harkamal Singh25-Jul-07 8:35
Harkamal Singh25-Jul-07 8:35 
QuestionRead project settings. [modified] Pin
Maddie from Dartford25-Jul-07 2:01
Maddie from Dartford25-Jul-07 2:01 
QuestionNaN for Integer... Pin
A AntonySP25-Jul-07 1:44
A AntonySP25-Jul-07 1:44 
AnswerRe: NaN for Integer... Pin
kubben25-Jul-07 1:57
kubben25-Jul-07 1:57 
GeneralRe: NaN for Integer... Pin
A AntonySP25-Jul-07 2:39
A AntonySP25-Jul-07 2:39 
AnswerRe: NaN for Integer... Pin
Colin Angus Mackay25-Jul-07 1:59
Colin Angus Mackay25-Jul-07 1:59 
AnswerRe: NaN for Integer... Pin
Pete O'Hanlon25-Jul-07 2:07
mvePete O'Hanlon25-Jul-07 2:07 
AnswerRe: NaN for Integer... Pin
CPallini25-Jul-07 2:11
mveCPallini25-Jul-07 2:11 
GeneralRe: NaN for Integer... Pin
Pete O'Hanlon25-Jul-07 2:15
mvePete O'Hanlon25-Jul-07 2:15 
GeneralRe: NaN for Integer... Pin
CPallini25-Jul-07 2:20
mveCPallini25-Jul-07 2:20 
AnswerRe: NaN for Integer... Pin
Brady Kelly25-Jul-07 2:32
Brady Kelly25-Jul-07 2:32 
JokeRe: NaN for Integer... Pin
Luc Pattyn25-Jul-07 7:21
sitebuilderLuc Pattyn25-Jul-07 7:21 
QuestionPDF to JPEG conversion ? Pin
adilkazmi25-Jul-07 1:38
adilkazmi25-Jul-07 1:38 

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.