Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Public Class Form1
Dim ResFilename As String = "res.resources"
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim rw As New Resources.ResourceWriter(ResFilename)
rw.AddResource("TextBox1", TextBox1.Text)
rw.Generate()
rw.Close()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If System.IO.File.Exists(ResFilename) = False Then
Dim rw As New Resources.ResourceWriter(ResFilename)
rw.Close()
Else
Dim rr As New Resources.ResourceReader(ResFilename)
Dim en As IDictionaryEnumerator = rr.GetEnumerator()
While en.MoveNext()
If en.Key = "TextBox1" Then
TextBox1.Text = CType(en.Value, String)
Exit While
End If
End While
rr.Close()
End If
End Sub
End Class
Public Class Form1
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
My.Settings.text = TextBox1.Text()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = My.Settings.text
End Sub
End Class
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.