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

Bir cevap yazın

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>