per il linguaggio è chiaro ci si dimentica di specificare ma la sezione è giustaOriginariamente inviato da alka
I tuoi forum li gestirai come preferisci: qui si legge e si rispetta il Regolamento, come ti era già stato detto in questa occasione per lo stesso problema, e dove già ci avevi ricordato i tuoi forum.![]()
Correggo il titolo.![]()
poi se vuoi non scrivo piu anzi spero cancelli mio nick
ogni volta (e non solo a me) sapete solo criticare regolamento regolamento
al posto di replicare con un codice esempio
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGe neratedAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttrib ute("Microsoft.VisualStudio.Editors.SettingsDesign er.SettingsSingleFileGenerator", "10.0.0.0"), _
Global.System.ComponentModel.EditorBrowsableAttrib ute(Global.System.ComponentModel.EditorBrowsableSt ate.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.ApplicationSettingsBas e
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSetti ngsBase.Synchronized(New MySettings()),MySettings)
#Region "My.Settings Auto-Save Functionality"
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared addedHandlerLockObject As New Object
<Global.System.Diagnostics.DebuggerNonUserCodeAttr ibute(), Global.System.ComponentModel.EditorBrowsableAttrib ute(Global.System.ComponentModel.EditorBrowsableSt ate.Advanced)> _
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
If My.Application.SaveMySettingsOnExit Then
My.Settings.Save()
End If
End Sub
#End If
#End Region
Public Shared ReadOnly Property [Default]() As MySettings
Get
#If _MyType = "WindowsForms" Then
If Not addedHandler Then
SyncLock addedHandlerLockObject
If Not addedHandler Then
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
addedHandler = True
End If
End SyncLock
End If
#End If
Return defaultInstance
End Get
End Property
<Global.System.Configuration.UserScopedSettingAttr ibute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttri bute(), _
Global.System.Configuration.DefaultSettingValueAtt ribute("")> _
Public Property form1_text1() As String
Get
Return CType(Me("form1_text1"),String)
End Get
Set
Me("form1_text1") = value
End Set
End Property
<Global.System.Configuration.UserScopedSettingAttr ibute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttri bute(), _
Global.System.Configuration.DefaultSettingValueAtt ribute("")> _
Public Property form1_text2() As String
Get
Return CType(Me("form1_text2"),String)
End Get
Set
Me("form1_text2") = value
End Set
End Property
<Global.System.Configuration.UserScopedSettingAttr ibute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttri bute(), _
Global.System.Configuration.DefaultSettingValueAtt ribute("")> _
Public Property form1_text3() As String
Get
Return CType(Me("form1_text3"),String)
End Get
Set
Me("form1_text3") = value
End Set
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.HideModuleNameAttrib ute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttri bute(), _
Global.System.Runtime.CompilerServices.CompilerGen eratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAt tribute("My.Settings")> _
Friend ReadOnly Property Settings() As Global.WindowsApplication4.My.MySettings
Get
Return Global.WindowsApplication4.My.MySettings.Default
End Get
End Property
End Module
End Namespace
questo è da aggiungere in settig al codice sopra
e per questo argomento le dicussioni erano tutte un po vecchie
pensa ad aiutare
che io i mod come te nei miei forum non li voglio
![]()
speriamo che mi banni
con tutti i problemi che ci sono cè chi ha tempo di rompere con queste cose
se poi hai la capo fresca come vedo dall avatar io qui non ci vengo piu
![]()
http://tinypic.com/view.php?pic=kd0t1t&s=5
per ovviare ha questo problema esistono i prefissi discussioni [obbligatori]
cosi noi abbiamo evitato di richiamare gli utenti...


