Dan berikut pula koding yang telah dibuat :
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Tugas_6
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
}
void Button1Click(object sender, EventArgs e)
{
//awal protokol
string hasil = inpt.Text.Substring(0);
box1.Text = hasil.Substring(8,5); // (mulai kata yang di ambil,banyaknya yang di ambil)
box2.Text = hasil.Substring(45,5);
box3.Text = hasil.Substring(13,2);
box4.Text = hasil.Substring(15,2);
box5.Text = hasil.Substring(17,5);
box6.Text = hasil.Substring(22,19);
}
}
}
Tidak ada komentar:
Posting Komentar