Post on 06-Jul-2018
8/17/2019 Tugas Visual
1/5
Listingusing 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 Tugas
pu!lic partial class Form" # Form pu!lic Form"$% &nitiali'eComponent$%; ( pri)ate )oid !utton*"+Clic,$ o!-ect sender /)ent0rgs e% string a; i1 $radio2utton".C3ec,ed 44 true % a 4 5La,i 6 La,i5 ; ( else a 4 57erempuan5 ; ( i1 $text2ox*8.Text 94 text2ox*:.Text% Message2ox .S3ow$ 57assword dan e67assword tida, sama5 %; text2ox*8.Focus$%; return ; ( Form: tampil 4 new Form: $5
8/17/2019 Tugas Visual
2/5
text2ox*:.Text 4 55; text2ox*8.Text 4 55; com!o2ox/x".Selected&tem 4 55; com!o2ox/x:.Selected&tem 4 55; com!o2ox/x8.Selected&tem 4 55; text2ox*@.Text 4 55; text2ox*B.Text 4 55; (
pri)ate )oid text2ox*B+?ey7ress$ o!-ect sender ?ey7ress/)ent0rgs e% c3ar c3 4 e.?eyC3ar; i1 $9C3ar .&sDigit$c3% c3 94 % e.Aandled 4 true ; ( ( pri)ate )oid text2ox*@+?ey7ress$ o!-ect sender ?ey7ress/)ent0rgs e% c3ar c3 4 e.?eyC3ar; i1 $9C3ar .&sDigit$c3% c3 94 % e.Aandled 4 true ; ( (
pri)ate )oid text2ox*B+Ealidating+"$ o!-ect sender Cancel/)ent0rgs e% i1 $text2ox*B.Text 44 55% e.Cancel 4 true ; ( (
pri)ate )oid text2ox*"+Ealidating+"$ o!-ect sender Cancel/)ent0rgs e% i1 $text2ox*".Text 44 55% e.Cancel 4 true ; ( (
pri)ate )oid text2ox*:+Ealidating+"$ o!-ect sender Cancel/)ent0rgs e% i1 $text2ox*:.Text 44 55% e.Cancel 4 true ; (
( ((
8/17/2019 Tugas Visual
3/5
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 Tugas
pu!lic partial class Form: # Form string datapassing; pu!lic Form:$ string data% &nitiali'eComponent$%; t3is .datapassing 4 data; (
pri)ate )oid Form:+Load$ o!-ect sender /)ent0rgs e% text2ox".Text 4 datapassing; Form" tampil 4 new Form" $%; (
pri)ate )oid !utton*"+Clic,$ o!-ect sender /)ent0rgs e% 0pplication ./xit$%; (
pri)ate )oid !utton*:+Clic,$ o!-ect sender /)ent0rgs e% Form" tampil 4 new Form" $%;
tampil.S3ow$%; t3is .Aide$%; (
(
(
8/17/2019 Tugas Visual
4/5
Hasil Output
8/17/2019 Tugas Visual
5/5