Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing the parameters of a method assigned to a delegate Pin
Dave Kreskowiak19-Feb-17 11:33
mveDave Kreskowiak19-Feb-17 11:33 
GeneralRe: Accessing the parameters of a method assigned to a delegate Pin
Jörgen Andersson19-Feb-17 21:09
professionalJörgen Andersson19-Feb-17 21:09 
AnswerRe: Accessing the parameters of a method assigned to a delegate Pin
Gerry Schmitz19-Feb-17 15:06
mveGerry Schmitz19-Feb-17 15:06 
GeneralRe: Accessing the parameters of a method assigned to a delegate Pin
Jörgen Andersson19-Feb-17 21:04
professionalJörgen Andersson19-Feb-17 21:04 
GeneralRe: Accessing the parameters of a method assigned to a delegate Pin
Gerry Schmitz20-Feb-17 8:25
mveGerry Schmitz20-Feb-17 8:25 
AnswerRe: Accessing the parameters of a method assigned to a delegate Pin
Richard Deeming20-Feb-17 2:44
mveRichard Deeming20-Feb-17 2:44 
GeneralRe: Accessing the parameters of a method assigned to a delegate Pin
Jörgen Andersson28-Feb-17 20:34
professionalJörgen Andersson28-Feb-17 20:34 
QuestionWindows form application connectivity Pin
Member 1301073119-Feb-17 8:54
Member 1301073119-Feb-17 8:54 
Hello,

I think I am level basic at programming, but I'm not lazy to search on internet when I have a problem.

Although I need help because I searched on the internet for hours and when I found something what was looking good, it didn't help me.

And because of that I'm asking you guys if you would help me please. In code's comments are my problems. Thank you for replies.

C#
<pre>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace kg
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            // and I need to get "price" to Calculate_Click() = my biggest problem 

            double price = 0;

            if (Material.SelectedIndex == 0 && Thickness.SelectedIndex == 0)
                price += 82.36;
            if (Material.SelectedIndex == 0 && Thickness.SelectedIndex == 1)
                price += 125.23;
            if (Material.SelectedIndex == 0 && Thickness.SelectedIndex == 2)
                price += 163.98;
            // and so on...
        }

        private void Calculate_Click(object sender, EventArgs e)
        {
            MaterialPriceLabel.Text = price; // Why is the "price" underlined? 
        }
    }

AnswerRe: Windows form application connectivity Pin
NotPolitcallyCorrect19-Feb-17 9:47
NotPolitcallyCorrect19-Feb-17 9:47 
AnswerRe: Windows form application connectivity Pin
Richard Deeming19-Feb-17 9:48
mveRichard Deeming19-Feb-17 9:48 
GeneralRe: Windows form application connectivity Pin
Member 1301073120-Feb-17 1:48
Member 1301073120-Feb-17 1:48 
GeneralRe: Windows form application connectivity Pin
Richard Deeming20-Feb-17 1:53
mveRichard Deeming20-Feb-17 1:53 
GeneralRe: Windows form application connectivity Pin
Member 1301073120-Feb-17 4:23
Member 1301073120-Feb-17 4:23 
GeneralRe: Windows form application connectivity Pin
Richard Deeming20-Feb-17 4:48
mveRichard Deeming20-Feb-17 4:48 
GeneralRe: Windows form application connectivity Pin
Dave Kreskowiak20-Feb-17 5:29
mveDave Kreskowiak20-Feb-17 5:29 
GeneralRe: Windows form application connectivity Pin
Member 1301073120-Feb-17 6:57
Member 1301073120-Feb-17 6:57 
GeneralRe: Windows form application connectivity Pin
Dave Kreskowiak20-Feb-17 9:30
mveDave Kreskowiak20-Feb-17 9:30 
AnswerRe: Windows form application connectivity Pin
Sascha Lefèvre20-Feb-17 5:11
professionalSascha Lefèvre20-Feb-17 5:11 
QuestionReturning JSON From RESTful WCF Pin
Liagapi17-Feb-17 20:42
Liagapi17-Feb-17 20:42 
AnswerRe: Returning JSON From RESTful WCF Pin
Afzaal Ahmad Zeeshan17-Feb-17 20:56
professionalAfzaal Ahmad Zeeshan17-Feb-17 20:56 
GeneralRe: Returning JSON From RESTful WCF Pin
Liagapi17-Feb-17 21:26
Liagapi17-Feb-17 21:26 
Questionc# Pin
Member 944496917-Feb-17 4:01
Member 944496917-Feb-17 4:01 
AnswerRe: c# Pin
Dave Kreskowiak17-Feb-17 4:07
mveDave Kreskowiak17-Feb-17 4:07 
AnswerRe: c# Pin
Eddy Vluggen17-Feb-17 4:13
professionalEddy Vluggen17-Feb-17 4:13 
AnswerRe: c# Pin
Patrice T18-Feb-17 15:07
mvePatrice T18-Feb-17 15:07 

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.