How to use a App.config file in WPF applications?

前端 未结 8 2233
既然无缘
既然无缘 2020-12-04 13:59

I created an App.config file in my WPF application:


         


        
8条回答
  •  心在旅途
    2020-12-04 14:39

    I have a Class Library WPF Project, and I Use:

    'Read Settings
    Dim value as string = My.Settings.my_key
    value = "new value"
    
    'Write Settings
    My.Settings.my_key = value
    My.Settings.Save()
    

提交回复
热议问题