I want to add the values only first time when I run it and then display it in appconfig.xml file, then next time when I run my application it should display
that values...
the design form of my progrn is as follows:
1)LABEL TEXTBOX COMBOBOX
2)LABEL TEXTBOX COMBOBOX
3)LABEL TEXTBOX COMBOBOX
4)LABEL TEXTBOX COMBOBOX
where textbox will have any time which we will enter and combobox will contain AM/PM..
Help me in that also
How to enter values in combobox???

Recommended Answers

All 2 Replies

Its better to go with an XML file to keep these settings. Its easier to edit and update that.

'Try this if you want to go with app.config, This will not work in .NET 1.0 and .NET 1.1

Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath)
config.AppSettings.Settings("TestKey").Value = "Test Value"
config.Save()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.