Chce odczytywać dane z texbox`a i dodać je do gotowego wzoru. Problem jest w tym, że jestem kompletnie zielony z programowania i nie mam pojęcia jak to się robi. Jakieś poradniki, kursy lub propozycje od czego mam zacząć?
Texbox`y nazwałem po prostu nazwami co pokazują lecz gdy wpisuje waga.Text nie odczytuje żadnych danych. :/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (plec = "Kobieta")
{
((waga.Text + 9, 99) * (wzrost.Text * 6, 25) - (wiek.Text * 4, 92) - 161);
}
else
{
((waga.Text + 9, 99) * (wzrost.Text * 6, 25) - (wiek.Text * 4, 92) + 5);
}
}
}
}