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
   34   35   36   37   38   39   40   41   42   43   44