Click here to Skip to main content
15,881,424 members
Home / Discussions / C#
   

C#

 
GeneralRe: Paypal for desktop application Pin
sharmaravi1239-Aug-12 0:40
sharmaravi1239-Aug-12 0:40 
GeneralRe: Paypal for desktop application Pin
jschell10-Aug-12 12:15
jschell10-Aug-12 12:15 
QuestionHow to write and move text on image Pin
Member 37694462-Aug-12 16:46
Member 37694462-Aug-12 16:46 
GeneralRe: How to write and move text on image Pin
Eddy Vluggen2-Aug-12 20:49
professionalEddy Vluggen2-Aug-12 20:49 
AnswerRe: How to write and move text on image Pin
BillWoodruff4-Aug-12 5:11
professionalBillWoodruff4-Aug-12 5:11 
Questionsql table change notifications Pin
HimalR82-Aug-12 4:28
HimalR82-Aug-12 4:28 
AnswerRe: sql table change notifications Pin
BobJanova2-Aug-12 4:40
BobJanova2-Aug-12 4:40 
QuestionFinding value in a list Pin
Nathaniel Sumaya1-Aug-12 23:33
Nathaniel Sumaya1-Aug-12 23:33 
C#
public Country(string cAbs, string cName)
{
    this._country = cName;
    this._abs = cAbs;
}


private void btnOk_Click(object sender, EventArgs e)
        {
            Country myCountry = new Country();

            CountryList countries = new CountryList();

            countries.Add(new Country("AE", "United Arab Emirates"));
            countries.Add(new Country("AF", "Afghanistan"));
            countries.Add(new Country("AQ", "Antarctica"));
            countries.Add(new Country("AR", "Argentina"));
            countries.Add(new Country("AT", "Austria"));
            countries.Add(new Country("AU", "Australia"));
            countries.Add(new Country("BD", "Bangladesh"));
            countries.Add(new Country("BE", "Belgium"));
            countries.Add(new Country("BR", "Brazil"));
            countries.Add(new Country("BS", "Bahamas"));
            countries.Add(new Country("CA", "Canada"));
            countries.Add(new Country("CH", "Switzerland"));
            countries.Add(new Country("CL", "Chilie"));
            countries.Add(new Country("CM", "Cameroon"));
            countries.Add(new Country("CL", "Chilie"));
            countries.Add(new Country("CN", "China"));
            countries.Add(new Country("CO", "Columbia"));
            countries.Add(new Country("CR", "Costa Rica"));
            countries.Add(new Country("DK", "Denmark"));
            countries.Add(new Country("DM", "Dominica"));
            countries.Add(new Country("DO", "Domican Republic"));
            countries.Add(new Country("EC", "Ecuador"));
            countries.Add(new Country("EE", "Estonia"));
            countries.Add(new Country("EG", "Egypt"));
            countries.Add(new Country("ES", "Spain"));
            countries.Add(new Country("ET", "Ethiopia"));
            countries.Add(new Country("EU", "European Union"));

            //CountryList country = countries.Where(f=> f.CountryAbreviation == this.textBox1.Text)  

            //Country country = countries.Where(f => f.CountryAbreviation == this.textBox1.Text).OrderByDescending(f => f.CountryAbreviation).FirstOrDefault();
                       
        }


Question:

1. How to find the a country in a list?
AnswerRe: Finding value in a list PinPopular
Ed Hill _5_1-Aug-12 23:44
Ed Hill _5_1-Aug-12 23:44 
AnswerRe: Finding value in a list Pin
AmitGajjar2-Aug-12 2:42
professionalAmitGajjar2-Aug-12 2:42 
GeneralRe: Finding value in a list Pin
Ed Hill _5_2-Aug-12 3:26
Ed Hill _5_2-Aug-12 3:26 
GeneralRe: Finding value in a list Pin
BobJanova2-Aug-12 4:29
BobJanova2-Aug-12 4:29 
AnswerRe: Finding value in a list Pin
Ramesh Muthiah3-Aug-12 0:47
Ramesh Muthiah3-Aug-12 0:47 
GeneralRe: Finding value in a list Pin
Ed Hill _5_3-Aug-12 0:59
Ed Hill _5_3-Aug-12 0:59 
AnswerRe: Finding value in a list Pin
Christian Amado6-Aug-12 10:39
professionalChristian Amado6-Aug-12 10:39 
Questionsetting the source of a bitmap image in C# Pin
Xarzu1-Aug-12 18:39
Xarzu1-Aug-12 18:39 
AnswerRe: setting the source of a bitmap image in C# Pin
Eddy Vluggen1-Aug-12 22:10
professionalEddy Vluggen1-Aug-12 22:10 
GeneralRe: setting the source of a bitmap image in C# Pin
Xarzu6-Aug-12 6:40
Xarzu6-Aug-12 6:40 
Generalhi Chris Maunder Pin
mohammad-mirshahi1-Aug-12 9:43
mohammad-mirshahi1-Aug-12 9:43 
GeneralRe: hi Chris Maunder Pin
Pete O'Hanlon1-Aug-12 9:46
mvePete O'Hanlon1-Aug-12 9:46 
QuestionSetDate of system from inside of our program Pin
Fred 341-Aug-12 4:15
Fred 341-Aug-12 4:15 
AnswerRe: SetDate of system from inside of our program Pin
Pete O'Hanlon1-Aug-12 4:22
mvePete O'Hanlon1-Aug-12 4:22 
AnswerRe: SetDate of system from inside of our program Pin
Dave Kreskowiak1-Aug-12 4:47
mveDave Kreskowiak1-Aug-12 4:47 
QuestionHow to refuse changes of controls in a form ? Pin
taibc1-Aug-12 0:36
taibc1-Aug-12 0:36 
AnswerRe: How to refuse changes of controls in a form ? Pin
Pete O'Hanlon1-Aug-12 0:39
mvePete O'Hanlon1-Aug-12 0:39 

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.