Posting tutorial kali akan dibahas tentang bagaimana cara menutup form satu dari form dua, dalam beberapa kasus kita pasti akan menjumpai suatu keadaan dimana kita harus menutup form dua akan tetapi fokus berada pada form satu. jika bingung, silahkan download contohnya disini. pada file binary yang telah di download tadi, coba anda jalankan, setelah itu tampilkan form 2 (dengan melakukan klik button1 yang ada pada form 1) seperti gambar di bawah ini.
setelah iti tutup form2 (dengan cara klik icon x yang berada di kanan atas) maka form satu juga akan di close, berikut ini adalah source codenya
tuliskan code pada form 1
private void button1_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2(this);
frm2.ShowDialog();
}
tulis code ini pada form2
private Form1 form1;
public Form2( Form1 frm1)
{
this.form1 = frm1;
InitializeComponent();
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
form1.Close();
}
Gambar 1. Preview aplikasi yang dijalankan
jika anda masih bingung, ini adalah urutan pembuatan projectnya
1. pertama yang harus kita lakukan adalah membuat project dengan dua form, misal form pertama kita beri nama form 1 dan form kedua kita beri nama form2.
2. selanjutnya adalah tambahkan button pada form pertama dan tambahkan code berikut ini
Form2 frm2 = new Form2(this);
frm2.ShowDialog();
3. rubahlah code construktor pada form2 agar menjadi seperti dibawah ini
private Form1 form1;
public Form2( Form1 frm1)
{
this.form1 = frm1;
InitializeComponent();
}
4. dan langkah terakhir adalah menambahkan event closing untuk melakukan closing pada form 1, codenya seperti dibawah in
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
form1.Close();
} Berikut ini adalah source lengkap untuk form 1
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2(this);
frm2.ShowDialog();
}
}
}
dan ini adalah source lengkap untuk form 2
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form2 : Form
{
private Form1 form1;
public Form2( Form1 frm1)
{
this.form1 = frm1;
InitializeComponent();
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
form1.Close();
}
private void Form2_Load(object sender, EventArgs e)
{
}
}
}
JIka sampai disini masih belum mengertu/bingung silahkan tinggalkan email anda di kotak komentar, akan saya send full projectnya ke email anda, atau contact us on informasi@csharp-indonesia.com
NB : Dalam tutorial ini program ditulisa menggunakan IDE Visual studio 2010. dengan target framework 2.0 . Sehingga minimal komputer harus terinstal windows xp untuk bisa menjalankan program *.exe nya, Sedangkan untuk membuka projectnya mau tidak mau harus menginstal microsoft visual studio 2010
NB : Dalam tutorial ini program ditulisa menggunakan IDE Visual studio 2010. dengan target framework 2.0 . Sehingga minimal komputer harus terinstal windows xp untuk bisa menjalankan program *.exe nya, Sedangkan untuk membuka projectnya mau tidak mau harus menginstal microsoft visual studio 2010
Sankyu......
BalasHapus20150704 junda
BalasHapuslouboutin
cheap soccer jerseys
tory burch handbags
michael kors bags
polo ralph lauren
fitflops sale
burberry scarf
michael kors outlet
chanel online shop
michael kors handbags
gucci borse
coach factory outlet
ray bans
pandora jewelry stores
football jerseys
air max 2015
soccer outlet
nike air max uk
longchamp outlet online
prada shoes
michael kors handbags
louis vuitton sacs
prada outlet
louboutin pas cher
true religion sale
cheap snabacks
gucci belt
tory burch shoes
ralph lauren pas cher
ed hardy outlet
michael kors purse
louis vuitton
ray-ban sunglasse
air jordan uk
nike blazer pas cher
coach outlet
longchamp pliage pas cher
air force pas cher
michael kors
michael kors
Bold, classic and stunningly captivating, a pair of Ray-Ban Aviator sunglasses is a charmer. They add a dash of chic to the wearer’s look. Whether it’s a casual outing or a formal ray ban outlet event, donning a pair of these sassy sunnies can instantly draw attention towards you. Meant to perfectly complement both casual as well as sophisticated tailored outfits; they are the perfect match to accentuate your class, glamour and exuberant taste.Though the classic black Ray-Ban Aviator sunglasses have always been a favorite amongst all the fashion followers, the current fad is to pep up your style quotient with a pair of Ray-Ban Aviator sunglasses with flash lenses. Super stylish, flamboyant and absolutely glamorous, they are a hot favourite among celebrities and fashion icons ray ban wayfarer sale alike.
BalasHapusOn the other hand, Wayfarers might not suit every face shape. These shades are more suitable for a person with a long or rectangular face. Today, one can also choose from Wayfarers in various colours too.The main purpose of sunglasses is to protect your eyes from the sun. And the protection comes entirely from the lenses that are used. One ray ban sunglasses must know that there are different types of lenses available with Ray-Bans and one must select them according to the need.Standard lenses: Initially made for military use, the iconic G-15 and B-15 lenses offer optimal levels of clarity, comfort and protection.Gradient: Keeping up with the latest trends, gradient lenses come in a wide range of exciting colors. So, if vintage colours cheap ray bans offer limited choice, one can go for colourful gradient lenses.
Obviously, for Ray-Ban models with very thin temple "arms", like Aviators, no logo is present.Look for the model number inside the “arms” of the glasses. Look at the inside of the "arms" of the glasses that rest on your ears. If you have Wayfarers or Clubmasters, you should see white text ray bans cheap inside the arms. On the left arm, you'll see your glasses' serial and manufacturing numbers. On the right arm, you should see the Ray-Ban logo, "Made in Italy", and a stylized "CE" (which signifies that the glasses are certified to be sold in Europe). If this text is missing, smudged, or poorly-printed, your glasses are almost certainly fakes.
The Ray-Ban logo ray ban glasses will be etched on both the lenses. On the right lens will be the Ray-Bay logo, while on the left lens, right below the hinges will be the initials ‘RB’.If the sunglasses have nose pads, there will be the initials ‘RB’ engraved right at the centre of the metal piece.And there are a few other points which you should keep in ray ban clubmaster mind, as far as original Ray-Ban sunglasses are concerned.Pre-2000 models of Ray-Ban sunglasses will have the initials ‘BL’ instead of ‘RB’ on the left lens.
1guowenhao0827
BalasHapusroshe run men
cheap ugg boots, http://www.cheapuggboots.net.co
kobe shoes
cheap nfl jerseys
pandora jewelry
puma shoes
discount oakley sunglasses, http://www.oakleysunglassesdiscount.us.com
iphone 6 plus cases
prada handbags
polo ralph lauren outlet
michael kors outlet
michael kors factory outlet, http://www.michaelkorsfactoryoutletonline.com
mcm bags
insanity workout
michael kors outlet online
coach outlet online
christian louboutin outlet
michael kors outlet
salomon running shoes
marc jacobs
tory burch outlet
ralph lauren,polo ralph lauren,ralph lauren outlet,ralph lauren italia,ralph lauren sito ufficiale
ferragamo shoes
michael kors uk outlet
nike free uk
dallas cowboys jersey
tiffany and co jewelry
burberry outlet online, http://www.burberryoutletonlinestore.com.co
calvin klein underwear
celine outlet
michael kors handbags
karen millen dresses
ray ban sunglasses, http://www.ray-bansunglassess.in.net
real madrid jersey
beats by dre
chenlina20150916
BalasHapushermes belt
supra shoes
celine handbags
ralph lauren
ed hardy clothing
louboutin
kevin durant shoes
coach factory outlet
ugg outlet
kate spade
coach outlet
uggs on sale
abercrombie
pandora charms
christian louboutin
louis vuitton outlet
timberland boots uk
cheap versace
hollister kids
swarov ski jewelry
louboutin pas cher
nike huarache
louboutin
marc jacobs
hollister
pandora bracelets
canada goose outlet
michael kors outlet online
cheap uggs boots
nike air max
timberland uk
nike sb
tod's shoes
ralph lauren uk
tory burch outlet
cheap oakley sunglasses
ugg slippers
adidas originals
louis vuitton borse
coach outlet canada
as
qihang1005,true religion jeans
BalasHapuscanada goose outlet
mont blanc
canada goose uk
hollister co
ralph lauren pas cher
nike roshe run
nike running shoes
marc jacobs
cheap uggs boots
mizuno running shoes
adidas original trainers
moncler jackets
ed hardy clothing
oakley sunglasses
nike free run
michael kors outlet
nike huarache trainers
tommy hilfiger outlet
ghd
cheap uggs
pandora jewelry
nike trainers
air force 1
ugg boots clearance
giuseppe zanotti sneakers
prada outlet
prada uk
toms outlet
louis vuitton outlet
louis vuitton pas cher
longchamp handbags
ray-ban sunglasses
timberland boots
ray ban outlet
ralph lauren polos shirts
ugg outlet
q
2015-11-24 xiaozhengm
BalasHapusnike blazer
moncler outlet
louis vuitton outlet
adidas superstars
nike sb
michael kors outlet online
nike uk
nike store
cheap ray ban sunglasses
toms outlet
michael kors
jordan shoes
coach canada outlet
hollisters
louis vuitton outlet
polo ralph lauren
nike air jordan
prada outlet
michael kors outlet uk
coach factory outlet
ralph lauren pas cher
michael kors
ugg boots
fitflops
coach factory outlet
louis vuitton outlet
michael kors outlet
abercrombie outlet
canada goose uk
coach factory outlet
air max 95
nike air max shoes
air jordan 13
kate spade handbags
kate spade
coach factory outlet
nike huarache trainers
christian louboutin outlet
nike trainers
coach outlet
companies in Riyadh cleaning workers technical coach at the highest levelشركة تسليك مجارى بالرياض
BalasHapusشركة تنظيف بالرياض
شركة تنظيف شقق بالرياض
شركة تنظيف منازل بالرياض
شركة تنظيف خزنات بالرياض
شركة مكافحة حشرات بالرياض
شركة رش مبيدات بالرياض
شركة تخزين اثاث بالرياض
شركة تنظيف مجالس بالرياض
شركة تنظيف فلل بالرياض
BalasHapusشراء اثاث مستعمل بالرياض
شركة شراء اثاث مستعمل بالرياض
ارقام الاثاث المستعمل بالرياض
محلات شراء الاثاث المستعمل بالرياض
حقين الاثاث المستعمل بالرياض
شركة تنظيف بالرياض
شركة تنظيف شقق بالرياض
شركة تنظيف فلل بالرياض
شركة تنظيف منازل بالرياض
شركة مكافحة حشرات بالرياض
شركة مكافحة النمل الابيض بالرياض
شركة تخزين اثاث بالرياض
تخزين اثاث بالرياض
مستودعات تخزين اثاث بالرياض
افضل شركة كشف تسربات
شركة كشف تسربات بالرياض
كشف تسربات المياه
شركة كشف تسربات المياه بالرياض
شركة مكافحة حشرات بجدة
مكافحة حشرات بجدة
مكافحة حشرات بالمدينة المنورة
شركة مكافحة حشرات بالمدينة المنورة
شراء اثاث مستعمل بالرياض
BalasHapusشراء الاثاث المستعمل بالرياض
محلات شراء الاثاث المستعمل بالرياض
ارقام الاثاث المستعمل بالرياض
حقين الاثاث المستعمل بالرياض
شراء اثاث مستعمل
شركة روائع
BalasHapusشركة نقل اثاث بالرياض
شركة نقل عفش بالرياض
نقل اثاث داخل الرياض
نقل اثاث خارج الرياض
ارقام شركات نقل اثاث بالرياض
شركات نقل اثاث بالرياض
افضل شركة نقل اثاث بالرياض
افضل شركة نقل عفش بالرياض
شركات نقل عفش
شركات نقل عفش بالرياض
نقل عفش داخل وخارج الرياض
نقل عفش خارج الرياض
zhengjx20160326
BalasHapuscartier love ring
ralph lauren outlet
ecco outlet
cheap basketball shoes
coach outlet online
nike air max 90
ghd hair dryer
reebok shoes
michael kors handbags
christian louboutin uk
michael kors outlet
cheap oakley sunglasses
ugg sale
michael kors
fitflops shoes
louis vuitton borse
toms outlet
fitflops outlet
fitflops clearance
nike roshe run
ray bans
air jordan shoes
toms outlet
levi's outlet
canada goose sale
cheap ray bans
michael kors uk
ray ban outlet
lululemon athletica
sac longchamp pliage
babyliss
omega
polo ralph lauren outlet
nike trainers
burberry sale
prada handbags on sale
true religion
kate spade new york
hermes belt
puma outlet
rolex watches for sale
BalasHapuslongchamp pas cher
louboutin pas cher
ralph lauren outlet
cheap oakley sunglasses
longchamp handbags
burberry outlet
burberry outlet
hollister clothing
coach outlet
beats by dre
ralph lauren outlet
ralph lauren uk
ferragamo shoes
tiffany and co jewelry
kate spade handbags
longchamp handbags
ferragamo outlet
birkenstock sandals
ralph lauren uk
longchamp handbags
longchamp pliage
oakley sunglasses
ray ban sunglasses
true religion jeans sale
true religion jeans
hollister clothing store
toms outlet
coach outlet online
lululemon pants
cai20160329
zhengjx20160411
BalasHapushollister clothing
nike air max uk
michael kors outlet online sale
louis vuitton bags
cheap toms
ralph lauren outlet
cheap ray ban sunglasses
lebron 12
abercrombie and fitch
tory burch boots
air jordan shoes
basketball shoes
coach outlet
cheap ray ban sunglasses
cheap ray ban sunglasses
montblanc pen
adidas running shoes
christian louboutin sale
cheap rolex watches
longchamp le pliage
ray bans
michael kors outlet online
nike free 5.0
toms
oakley outlet
air jordan shoes
louis vuitton purses
coach factory outlet online
louis vuitton
gucci outlet online
ray ban sunglasses uk
nike air force 1 white
michael kors bags
kd 7 shoes
louis vuitton outlet
michael kors
michael kors purses
louis vuitton outlet online
oakley vault
coach outlet store online
chicago bulls
BalasHapusdetroit lions jerseys
new york jets jersey
new york giants jerseys
titans jersey
san antonio spurs jerseys
nike mercurial
nike outlet store
jordan 11
dolphins jerseys
tennessee titans jerseys
cheap nike shoes
nike foamposite
lacoste pas cher
new york jets jerseys
puma shoes
oklahoma city thunder jersey
los angeles lakers
golden state warriors jersey
washington redskins jersey
valentino shoes
lions jerseys
miami heat jersey
boston celtics jersey
houston texans jersey
buffalo bills jerseys
nike outlet store online
mac cosmetics sale
converse shoes
indianapolis colts jersey
nike outlet
ed hardy clothing
linyuan0517
chenlina20160709
BalasHapusray ban sunglasses
michael kors canada
louis vuitton outlet
michael kors purses
rolex watches
replica watches
mont blanc pens
jordan 3
louis vuitton outlet
michael kors handbags
kobe 9
tod's shoes
christian louboutin outlet
oakley sunglasses
louis vuitton
adidas ultra boost
nike trainers uk
louis vuitton
giuseppe zanotti
marc jacobs handbags
kevin durant shoes 7
tods outlet online
michael kors outlet
ray ban sunglasses
kate spade handbags
adidas shoes
michael kors handbags
coach outlet
adidas superstar
louis vuitton handbags
rolex submariner
nike air max
supra sneakers
coach outlet store online
coach factory outlet
toms shoes
michael kors outlet
michael kors outlet online sale
adidas originals
oakley sunglasses
as
ugg uk
BalasHapuscheap jordan shoes
louis vuitton outlet
ray-ban sunglasses
true religion jeans
nba jerseys
true religion jeans
cheap jordans
christian louboutin sale
mont blanc pens for sale
louis vuitton outlet
coach outlet
coach factory outlet
adidas trainers
the north face jackets
longchamp outlet
ray ban sunglasses
christian louboutin chaussures
christian louboutin shoes
cleveland cavaliers jerseys
minnesota vikings jerseys
christian louboutin flats
christian louboutin
adidas outlet
coach outlet
longchamp bags
coach outlet
lebron james shoes
cheap rolex watches
replica watches
mbt shoes
ugg outlet
adidas outlet
adidas originals shoes
nike trainers
cheap jordan shoes
uggs on sale
gucci handbags
cheap jordans
20168.15wengdongdong
jianbin0829
BalasHapusralph lauren uk
adidas nmd
ugg boots
nike outlet store
oakley sunglasses
ysl outlet
nike foamposite
michael kors handbags
ugg outlet
oakley sunglasses
valentino outlet
hermes belt for sale
louis vuitton outlet online
michael kors bags
michael kors handbags
adidas nmd
canada goose outlet
christian louboutin outlet
kobe bryants shoes
swarovski outlet
converse shoes sale
prada sneakers
asics
swarovski outlet
oakley sunglasses
louis vuitton bags
cheap canada goose jackets
nike air max
oakley sunglasses wholesale
calvin klein outlet
ugg outlet
fangyanting20161005
BalasHapusralph lauren pas cher
ugg boots
longchamp handbags
adidas trainers
michael kors outlet
michael kors wholesale
coach outlet online
ralph lauren polo shirts
cheap jordans
20161028meiqing
BalasHapusnike air force 1
cheap oakley sunglasses
ugg canada
michael kors outlet
adidas shoes
cheap nfl jerseys
moncler jackets
kate spade handbags
michael kors outlet
ugg boots canada
JIANBIN1112
BalasHapusair max 90
canada goose outlet
kate spade handbags
the north face outlet
nike free run
ugg outlet
yeezy boost 350
ugg boots
cheap ray ban sunglasses
mulberry handbags sale
louis vuitton
BalasHapusjuicy couture outlet
louis vuitton
nike free running
ugg outlet
michael kors handbags
air max uk
louis vuitton online
cazal sunglasses
ugg outlet
20161202lck
kobe bryant shoes
BalasHapusnike kobe sneakers
adidas stan smith uk
kobe basketball shoes
adidas nmd
nfl jerseys wholesale
retro jordans
nike huarache
lacoste outlet
air yeezy
golden state warriors
BalasHapuscowboys jerseys
cheap jordan shoes
michael kors handbags
jimmy choo shoes
nike huarache
converse trainers
cleveland browns jerseys
cheap nba jerseys
air max 90
canada goose jackets
BalasHapustoms shoes
christian louboutin outlet
cheap ray bans
swarovski crystal
michael kors
cheap oakley sunglasses
swarovski jewelry
oakley sunglasses
mulberry handbags
chanyuan12.29
oakley sunglasses
BalasHapusmichael kors outlet store
uggs outlet
kevin durant shoes
ferragamo shoes
louis vuitton outlet
burberry canada
true religion outlet
canada goose jackets
tory burch outlet
20170210lck
ray ban sunglasses
BalasHapusray ban sunglasses
ray bans
ray ban sunglasses
ray ban sunglasses
gucci bags
coach outlet online
michael kors handbags sale
michael kors handbags clearance
adidas nmd runner
20170402lck
adidas nmd
BalasHapusnike factory store
michael kors outlet clearance
nike outlet store
polo ralph lauren outlet online
michael kors outlet
coach factory outlet
adidas nmd
christian louboutin outlet
nike shoes outlet
0504shizhong
true religion jeans
BalasHapustods outlet online
christian louboutin
true religion outlet
ferragamo shoes
juicy couture tracksuit
ray-ban sunglasses
nike trainers
true religion canada
coach factory outlet
20170510lck
20170707 leilei3915
BalasHapuskate spade outlet store
michael kors outlet online
cheap oakley sunglasses
pandora charms
michael kors outlet
true religion outlet
coach outlet store online
hermes birkin
nike shoes
polo shirts
God loves righteous and faithful , i wish you become one of them , best wishes to be guided to the right way to god
BalasHapusnasihnetwork
sai
nasihnetwork
sai
ralph lauren uk
BalasHapusralph lauren outlet
mulberry uk
reebok shoes
ralph lauren outlet
houston texans jerseys
coach outlet
true religion outlet
minnesota vikings jerseys
adidas outlet
balenciaga sneakers
BalasHapuskyrie 4
jordan 13
links of london sale
adidas eqt
adidas stan smith men
prada eyeglasses
oakley
nike air max shoes
iniki
20180612 xiaoou
BalasHapusecco outlet
canada goose jackets
michael kors outlet clearance
coach outlet
cheap ugg boots
supra shoes sale
nike shoes outlet
2018 world cup jerseys
air jordan shoes
kate spade handbags
off white hoodie
BalasHapusgolden goose mid star
nike huarache
ray ban aviator sunglasses
moncler outlet
yeezys
adidas stan smith men
yeezy
nike air max 2017
nike cortez
BalasHapusشركة تركيب طارد حمام بعنيزة
شركة غسيل فرشات بعنيزة
شركة تنظيف المكيفات الأسبليت بعنيزة
شركة صيانة مسابح بعنيزة
شركة تنظيف موكيت مساجد بعنيزة
شركة تنظيف مساجد بعنيزة
شركة تنظيف مكيفات بعنيزة
شركة مكافحة النمل الابيض بعنيزة
شركة مكافحة البق بعنيزة
شركة مكافحة حشرات بعنيزة
nike epic react
BalasHapusjordan shoes
bape clothing
supreme
supreme new york
yeezy
russell westbrook shoes
longchamp handbags
jordan shoes
moncler
jordan shoes
BalasHapusbape clothing
supreme
supreme new york
yeezy
russell westbrook shoes
longchamp handbags
jordan shoes
moncler
supreme clothing
thank you for the information provided, we are waiting for the next info at cara mengugurkan kandungan
BalasHapusgolden goose sneakers
BalasHapusstephen curry shoes
cheap jordans
kd 12
lebron 18
supreme clothing
kyrie 7
yeezy 700
nike dunks
moncler outlet
تتعرض اغلب المكيفات فى المنازل الى تراكم الاتربة والغبار عليها وذلك غالبا بسبب كثرة التشغيل او تعرض المكيف للهواء بسبب فتح النوافذ
BalasHapusولكن تعتبر هذه الاتربة والغبار من اكثر الاشياء ضررا على المكيف حيث ان تراكم الغبار على المكيف يؤدى الى حدوث العديد من الاعطال به ومن هذه الاعطال تسريب المكيف للمياه
شركه تنظيف مكيفات بالجبيل
بسبب انسداد المبخرة بالاتربة والغبار وضعف كفاءة المكيف وعدم قدرته على التبريد واعطال اخرى كثيرة ونظرا لاهمية المكيف فى المنزل فإنه لابد من المحافظة عليه والاهتمام بتنظيفه وذلك ايضا لان تنظيف المنزل يعكس ايضا منظر جمالى على المنزل
بأكمله وقد يصعب على الافراد القيام بتنظيف المكيف بأنفسهم ولابد لهم من ان يستعينوا بشركة متخصصة فى تنظيف المكيفات الموجودة بالمنازل وتعد شركة تنظيف مكيفات بخميس مشيط اكثر شركة مناسبة للقيام بعملية التنظيف وذلك لخدماتها العديدة التى تقدمها وتميزها فى مجال تنظيف المكيفات عن باقى الشركات
شركة تنظيف مكيفات بخميس مشيط
you can try these out replica louis vuitton go to my site replica gucci her explanation bag replica high quality
BalasHapus