5 Replies
Form1.cs: 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 WinFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
} private void button2_Click(object sender, EventArgs e) { Application.Exit(); } } } this is program.cs: using WinFormsApp1; namespace Program3 { internal static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); Application.Run(new Form1()); } }
} private void button2_Click(object sender, EventArgs e) { Application.Exit(); } } } this is program.cs: using WinFormsApp1; namespace Program3 { internal static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); Application.Run(new Form1()); } }
what exactly is your question?
How to add code under a radio button.
By using the examples he provided
Mostly the array part which is the most confusing
Well, based on the look I'd say you don't need to add any code to the radio buttons, but instead access their state when calculate is clicked
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.