VB.net Pencere kapatılırken ayarları kaydetmek
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Try
My.Settings.sett1 = textbox1.text
My.Settings.Save()
Catch ex As Exception
MsgBox(“Cycle timeları kaydetmede sorun oluştu.”, _
MsgBoxStyle.Critical, “kaydetme hatası”)
End Try
End Sub