Dobrý večer! Mám taký jednoduchý kód:
Public Class Form1
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
My.Settings.user = 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.user
End Sub
End Class
Ak ho spustím dostanem hlášku error: 'user' is not a member of 'WindowsApplication1.My.MySettings' Viete mi povedať kde je chyba? Alebo som úplne mimo? Za každú odpoveď vopred ďakujem.
|