I have to create a GUI application that performs like a console application that I have already done. It is a program that takes a users input (number) and multiplies it by the values in the array. I don't know how to get that to happen. Any help? Here's the code that I've written so far:
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 MultiplicationGUI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
int number = Convert.ToInt32(textBox1.Text);
int[] TimesTable = { 2, 3, 4, 5, 6, 7, 8, 9, 10 };
}
}
}
Aucun commentaire:
Enregistrer un commentaire