Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
public Form()
{
InitializeComponent();
MultiplyAndDisplayString("12345");
}
private void MultiplyAndDisplayString(string input)
{
if (string.IsNullOrEmpty(input))
{
MessageBox.Show("Invalid Inputstring");
textBox1.Text = string.Empty;
return;
}
double convertedInput = Convert.ToDouble(input);
textBox1.Text = (convertedInput * 1.43).ToString();
}
private void MultiplyAndDisplayString(string input)
{
if (string.IsNullOrEmpty(input))
{
MessageBox.Show("Invalid Inputstring");
textBox1.Text = string.Empty;
return;
}
//convert
int convertedInput = Convert.ToInt32(input);
//multiply
int outcome = Convert.ToInt32(convertedInput * 1.43);
//display
textBox1.Text = outcome.ToString();
}
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.