Question
Why can't I get this random number generating form to work? it already has the dll file system.data using System; using System.Collections.Generic; using System.ComponentModel; using
Why can't I get this random number generating form to work? it already has the dll file system.data 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 WindowsFormsApp3 { public partial class Form1 : Form { Random Ran = new Random(); int value; public Form1() { InitializeComponent(); } private void Button1_Click(object sender, EventArgs e) { value = Ran.Next(1, 69); label1.Text = value.ToString(); } } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started