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

C#

 
JokeRe: Min and Max or Range Pin
Mycroft Holmes24-Mar-18 13:14
professionalMycroft Holmes24-Mar-18 13:14 
GeneralRe: Min and Max or Range Pin
#realJSOP26-Mar-18 2:10
professional#realJSOP26-Mar-18 2:10 
AnswerRe: Min and Max or Range Pin
MadMyche26-Mar-18 6:26
professionalMadMyche26-Mar-18 6:26 
Questionasync using linq Pin
Member 1347859921-Mar-18 20:42
Member 1347859921-Mar-18 20:42 
AnswerRe: async using linq Pin
Pete O'Hanlon21-Mar-18 22:01
mvePete O'Hanlon21-Mar-18 22:01 
GeneralRe: async using linq Pin
Member 1347859921-Mar-18 22:07
Member 1347859921-Mar-18 22:07 
GeneralRe: async using linq Pin
Pete O'Hanlon21-Mar-18 23:14
mvePete O'Hanlon21-Mar-18 23:14 
GeneralRe: async using linq Pin
Member 1347859922-Mar-18 1:04
Member 1347859922-Mar-18 1:04 
AnswerRe: async using linq Pin
Gerry Schmitz22-Mar-18 9:09
mveGerry Schmitz22-Mar-18 9:09 
GeneralRe: async using linq Pin
Member 1347859922-Mar-18 20:03
Member 1347859922-Mar-18 20:03 
QuestionC# listbox Pin
Member 1373977821-Mar-18 14:42
Member 1373977821-Mar-18 14:42 
QuestionRe: C# listbox Pin
Member 1373977821-Mar-18 15:00
Member 1373977821-Mar-18 15:00 
AnswerRe: C# listbox Pin
BillWoodruff21-Mar-18 17:45
professionalBillWoodruff21-Mar-18 17:45 
GeneralRe: C# listbox Pin
Member 1373977821-Mar-18 18:01
Member 1373977821-Mar-18 18:01 
GeneralRe: C# listbox Pin
BillWoodruff21-Mar-18 18:36
professionalBillWoodruff21-Mar-18 18:36 
GeneralRe: C# listbox Pin
Richard MacCutchan21-Mar-18 22:30
mveRichard MacCutchan21-Mar-18 22:30 
Quite a lot wrong with your code:
C#
private void KonverterBTN_Click(object sender, EventArgs e)// converter button code
{
    Celsiuslistbox.Items.Add(textBox1);
    
    double temp_Celsius; // temperature i celsius 
    double temp_Fahrenheit;// temperature i fahrenheit 
    int count;
    for ( count = 0; count <10; count++)
    {
        // you are copying the same value 10 times into Celsiuslistbox
        // and the return value from Items.Add is the item index, not the celsius value
        temp_Celsius = Celsiuslistbox.Items.Add(textBox1.Text);
    }
    
    do
    {
        // this do loop will run forever since count is equal to 10
        // from the for loop above
        temp_Celsius = Celsiuslistbox.Items.Add(textBox1.Text);
    } while ( count <=10);

    // this will convert the index number of the last item in the listbox to fahrenheit
    temp_Fahrenheit = (9.0 / 5.0) * temp_Celsius + 32;
       
    // this will not work since temp_Fahrenheit is a double, not a string
    FahrenheitListBox.Items.Add(temp_Fahrenheit);

AnswerRe: C# listbox Pin
Gerry Schmitz22-Mar-18 8:48
mveGerry Schmitz22-Mar-18 8:48 
QuestionBuilding Biometeric Application Pin
Member 1351208221-Mar-18 5:37
Member 1351208221-Mar-18 5:37 
AnswerRe: Building Biometeric Application Pin
OriginalGriff21-Mar-18 6:47
mveOriginalGriff21-Mar-18 6:47 
AnswerRe: Building Biometeric Application Pin
Gerry Schmitz22-Mar-18 6:15
mveGerry Schmitz22-Mar-18 6:15 
Questiongeneralizing a function to operate on any type with operator * defined Pin
Alexander Kindel20-Mar-18 13:16
Alexander Kindel20-Mar-18 13:16 
AnswerRe: generalizing a function to operate on any type with operator * defined Pin
Alexander Kindel20-Mar-18 14:52
Alexander Kindel20-Mar-18 14:52 
AnswerRe: generalizing a function to operate on any type with operator * defined Pin
BillWoodruff21-Mar-18 18:34
professionalBillWoodruff21-Mar-18 18:34 
QuestionMessage Removed Pin
20-Mar-18 3:37
Member 1373673020-Mar-18 3:37 
Questioni want to create a chat application without the need of a server Pin
Ma Lek20-Mar-18 0:09
Ma Lek20-Mar-18 0:09 

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.