Name
Name
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
Thanks very much for the help, really appreciate it, I can sure say I learned a thing or 2 out of this situation. 🙂 I'm definitely going to spend some time learning the basics of C# at least 😄 Come to think of it, I may even start right now 😄
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
Yes! It works. Ok and that's a wrap.
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
richTextBox1.Text = String.Empty
richTextBox1.Text = String.Empty
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
I'll try to use this
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
yes that's the plan
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
at the top of the handler, ok
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
I can't? So to close and run it again is the only way?
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
If I enter a new number the previous result stays. Do you have any advice for that?
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
Just one small thing left:
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
Ah NICE! The program works now! 🙂
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
let's see
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
thanks
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
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 GUIProgram
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void button1_Click(object sender, EventArgs e)
{



if (!int.TryParse(textBox1.Text, out int input))
{
return;
}

int a = 0;
int b = 0;

while (a <= input)
{
var mul = a * b;

if (mul == input)
{
if (a > b)
break;

richTextBox1.AppendText($"{a} x {b}\n");
}

if (b == input)
{
b = 0;
a++;
}
else
{
b++;
}
}

}


}
}
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 GUIProgram
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void button1_Click(object sender, EventArgs e)
{



if (!int.TryParse(textBox1.Text, out int input))
{
return;
}

int a = 0;
int b = 0;

while (a <= input)
{
var mul = a * b;

if (mul == input)
{
if (a > b)
break;

richTextBox1.AppendText($"{a} x {b}\n");
}

if (b == input)
{
b = 0;
a++;
}
else
{
b++;
}
}

}


}
}
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
that's how the whole code looks:
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
ok
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
ok I'll put the code in the button's secion then
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
the code I showed now is for the first textbox
171 replies
CC#
Created by Name on 4/21/2023 in #help
❔ How to make this program into GUI application?
int input = Convert.ToInt32(textBox1.Text);
int a = 0; int b = 0;

while (a <= input)
{
var mul = a * b;

if (mul == input)
{
if (a > b)
break;

richTextBox1.AppendText($"{a} x {b}\n");

}

if (b == input)
{
b = 0;
a++;
}
else
{
b++;
}
int input = Convert.ToInt32(textBox1.Text);
int a = 0; int b = 0;

while (a <= input)
{
var mul = a * b;

if (mul == input)
{
if (a > b)
break;

richTextBox1.AppendText($"{a} x {b}\n");

}

if (b == input)
{
b = 0;
a++;
}
else
{
b++;
}
171 replies