Tuesday, May 21, 2013

Sharing Everything From My Experience And Knowlegde

Sharing Everything From My Experience And Knowlegde


4 Cara Remove/Disabled Close[X]Button Pada Form VBNET

Posted: 20 May 2013 10:18 PM PDT

Mungkin pada saat tertentu kita ingin tombol close di form bisa menjadi "tidak bisa diclick (disabled)". Ada banyak cara untuk melakukan ini:
1.Set property FormBorderStyle = NONE
atau
2.Set Property ControlBox =FALSE
tapi kedua cara itu membuat tombol minimize dan maximize menjadi ikutan hilang (invisible/visible=false).

3.Gunakan event FormClosing()
tuliskan e.Cancel = true, maka form tidak akan pernah bisa di close (walaupun tombol close[x] nya aktif/dapat di click)

4.Disable tombol close dengan fungsi API, seperti gambar dibawah ini
Download full source project

Tags:
Disable Close Button[X] in the Vb.Net, How to disable the close button in VB.net, Disabling close button VB.NET, Visually remove/disable close button from title bar, How to remove or disable Close (X)-button of the Form, How to disable Close button on title bar in VB.net, cara remove tombol close form vbnet

No comments:

Post a Comment