Page 39 - E-Modul Pemrograman Dasar Kelas X
P. 39
private void kotakToolStripMenuItem_Click(object sender,
EventArgs e)
{
frmkotak Volumekotak = new frmkotak();
Volumekotak.Show();
}
private void tabungToolStripMenuItem_Click(object sender,
EventArgs e)
{
frmTabung Volumetabung new frmTabung();
Volumetabung.Show();
}
}
}
b) Form luas segitiga (frmSegitiga)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Luasdanvolume
{
public partial class frmSegitiga: Form
{
public frmSegitiga ()
{
InitializeComponent();
}
30