how can i save modifications.  
Author Message
Shady9399





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

hi

for example: If user has changed the form opacity of my program, in the next time when he execute the application, the opacity is the same that was configured by user.

anybody know how to do this




Visual Studio Express Editions10  
 
 
DMan1





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

You have user settings that can handle that for you ...you also have application settings for storing application wide settings like connection strings....but here is a link to more information concerning user settings:

http://msdn2.microsoft.com/en-us/library/shytyc55.aspx



 
 
Shady9399





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

Hi

for example: If user has changed the form opacity of my program, in the next time when he execute the application, the opacity is the same that was configured by user.

anybody know how to do this



 
 
Shady9399





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

for example: If user has changed the form opacity of my program, in the next time when he execute the application, the opacity is the same that was configured by user.

anybody know how to do this



 
 
Shady9399





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

for example: If user has changed the form opacity of my program, how can i save this setting



 
 
NeederOfVBHelp





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

I think you may be talking about serialization, but I'm not sure, serialization is something I'm trying to learn my self.
 
 
Tall Dude





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

Create a setting called 'opac'

(Double click on the solution explorer window, 'My project')

Find the 'settings' tab.

Name = opac, Type = double, Scope = user, Value = 1

On a form with 2 buttons:

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' More transparent

Me.Opacity -= 0.01

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

' Less transparent

Me.Opacity += 0.01

End Sub

Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

My.Settings.opac = Me.Opacity

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Me.Opacity = My.Settings.opac

End Sub

End Class



 
 
Shady9399





PostPosted: Visual Basic Express Edition, how can i save modifications. Top

thanks for help

;P