0% found this document useful (0 votes)
29 views3 pages

Nama:Tommy Diri Veto Aginta NIM:8020170268 KELAS:06PT4

This document contains the code for a Windows Forms application created in C# with Visual Studio. It defines a Form class with initialization code and event handler methods for various form controls like labels, text boxes, radio buttons, combo boxes and buttons. The event handlers are empty, but one button click handler calculates a student's average grade based on input values and displays it on a label, while another button clears the form controls.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

Nama:Tommy Diri Veto Aginta NIM:8020170268 KELAS:06PT4

This document contains the code for a Windows Forms application created in C# with Visual Studio. It defines a Form class with initialization code and event handler methods for various form controls like labels, text boxes, radio buttons, combo boxes and buttons. The event handlers are empty, but one button click handler calculates a student's average grade based on input values and displays it on a label, while another button clears the form controls.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

NAMA :TOMMY DIRI VETO AGINTA

NIM :8020170268
KELAS:06PT4
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 WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void label1_Click(object sender, EventArgs e)


{

private void label1_Click_1(object sender, EventArgs e)


{

private void textBox1_TextChanged(object sender, EventArgs e)


{

private void label2_Click(object sender, EventArgs e)


{

private void radioButton1_CheckedChanged(object sender, EventArgs e)


{

private void label3_Click(object sender, EventArgs e)


{

private void algoritma_SelectedIndexChanged(object sender, EventArgs e)


{

private void label5_Click(object sender, EventArgs e)


{

private void label6_Click(object sender, EventArgs e)


{

private void label10_Click(object sender, EventArgs e)


{

private void label12_Click(object sender, EventArgs e)


{

private void button1_Click(object sender, EventArgs e)


{
label13.Text = (int.Parse(textBox2.Text) * 0.3 + int.Parse(textBox3.Text)
* 0.3 + int.Parse(textBox4.Text) * 0.3 + int.Parse(textBox5.Text) * 0.1).ToString();
}

private void button2_Click(object sender, EventArgs e)


{
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox5.Clear();

radioButton1.Checked = false;
radioButton2.Checked = false;

comboBox1.SelectedIndex = -1;
listBox1.SelectedIndex = -1;

label13.Text = "0";

textBox1.Focus();
}

private void button3_Click(object sender, EventArgs e)


{
Close();
}
}
}

You might also like