Witam,
Chcę zrobić program z 2 formatkami. Po kliknięciu menu->konfiguracja pojawia się druga forma gdzie można skonfigurować port szeregowy.
Wstawiłem tam kilka comboBox'ów i korzystając z application settings próbowałem zapisać ustawienie comboBoxa tak aby po ponownym uruchomieniu programu comboBox miał to samo ustawienie jak podczas zamykania programu.

Nie wiem dlaczego nie mogę osiągnąć tego efektu (heh... jestem początkujący i nie widzę pewno jakichś oczywistych rzeczy ;))

Poświęciłem temu zagadnieniu sporo czasu i lipa. Co ciekawe na formatce głównej wstawiłem checkBoxa i to ustawienie mogę zapisywać i odczytywać przy uruchomieniu programu.
Proszę o pomoc w tym temacie. W załączniku przesyłam kod "programu" który spłodziłem. Temat może być interesujący dla szerszego grona gdyż nie wyszukałem jakiegoś dobrego opisu w tym temacie.

#pragma once
#include "app.h"
#include "MyForm1.h"
namespace Project1 {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Configuration;




	
/////////////////////////////////
////xxxxxxxxxxxxxx MyForm1 przekopiowane z MyForm1.h
/////////////////////////////////
	/// <summary>
	/// Summary for MyForm1
	/// </summary>
	public ref class MyForm1 : public System::Windows::Forms::Form
	{
	public:
		MyForm1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
			appss = gcnew app;
			
			

		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~MyForm1()
		{
			if (components)
			{
				delete components;
			}
		}
	public: System::Windows::Forms::TabControl^  tabControl1;
	protected: 
	public: System::Windows::Forms::TabPage^  tabPage1;
	public: System::Windows::Forms::Label^  label5;
	public: System::Windows::Forms::Label^  label4;
	public: System::Windows::Forms::Label^  label3;
	public: System::Windows::Forms::Label^  label2;
	public: System::Windows::Forms::Label^  label1;
	public: System::Windows::Forms::ComboBox^  comboBox6;
	public: System::Windows::Forms::ComboBox^  comboBox5;
	public: System::Windows::Forms::ComboBox^  comboBox4;
	public: System::Windows::Forms::ComboBox^  comboBox3;
	public: System::Windows::Forms::ComboBox^  comboBox2;
	public: System::Windows::Forms::ComboBox^  comboBox1;
	public: System::Windows::Forms::TabPage^  tabPage2;
	public: System::Windows::Forms::Label^  label6;
	public: System::Windows::Forms::CheckBox^  checkBox1;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
			this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
			this->label6 = (gcnew System::Windows::Forms::Label());
			this->label5 = (gcnew System::Windows::Forms::Label());
			this->label4 = (gcnew System::Windows::Forms::Label());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->comboBox6 = (gcnew System::Windows::Forms::ComboBox());
			this->comboBox5 = (gcnew System::Windows::Forms::ComboBox());
			this->comboBox4 = (gcnew System::Windows::Forms::ComboBox());
			this->comboBox3 = (gcnew System::Windows::Forms::ComboBox());
			this->comboBox2 = (gcnew System::Windows::Forms::ComboBox());
			this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
			this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
				this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
			this->tabControl1->SuspendLayout();
			this->tabPage1->SuspendLayout();
			this->SuspendLayout();
			// 
			// tabControl1
			// 
			this->tabControl1->Controls->Add(this->tabPage1);
			this->tabControl1->Controls->Add(this->tabPage2);
			this->tabControl1->Location = System::Drawing::Point(12, 12);
			this->tabControl1->Name = L"tabControl1";
			this->tabControl1->SelectedIndex = 0;
			this->tabControl1->Size = System::Drawing::Size(664, 342);
			this->tabControl1->TabIndex = 0;
			// 
			// tabPage1
			// 
			this->tabPage1->Controls->Add(this->label6);
			this->tabPage1->Controls->Add(this->label5);
			this->tabPage1->Controls->Add(this->label4);
			this->tabPage1->Controls->Add(this->label3);
			this->tabPage1->Controls->Add(this->label2);
			this->tabPage1->Controls->Add(this->label1);
			this->tabPage1->Controls->Add(this->comboBox6);
			this->tabPage1->Controls->Add(this->comboBox5);
			this->tabPage1->Controls->Add(this->comboBox4);
			this->tabPage1->Controls->Add(this->comboBox3);
			this->tabPage1->Controls->Add(this->comboBox2);
			this->tabPage1->Controls->Add(this->comboBox1);
			this->tabPage1->Controls->Add(this->checkBox1);
			this->tabPage1->Location = System::Drawing::Point(4, 22);
			this->tabPage1->Name = L"tabPage1";
			this->tabPage1->Padding = System::Windows::Forms::Padding(3);
			this->tabPage1->Size = System::Drawing::Size(656, 316);
			this->tabPage1->TabIndex = 0;
			this->tabPage1->Text = L"Konfiguracja Pomiaru";
			this->tabPage1->UseVisualStyleBackColor = true;
			
			
				// checkBox1
			// 
			this->checkBox1->AutoSize = true;
			this->checkBox1->Location = System::Drawing::Point(509, 75);
			this->checkBox1->Name = L"checkBox1";
			this->checkBox1->Size = System::Drawing::Size(80, 17);
			this->checkBox1->TabIndex = 18;
			this->checkBox1->Text = L"checkBox1";
			this->checkBox1->UseVisualStyleBackColor = true;
			this->checkBox1->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Checked", ::app::Default, L"testowa", false, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
			
			// 
			// label6
			// 
			this->label6->AutoSize = true;
			this->label6->Location = System::Drawing::Point(138, 161);
			this->label6->Name = L"label6";
			this->label6->Size = System::Drawing::Size(123, 13);
			this->label6->TabIndex = 11;
			this->label6->Text = L"Sterowanie przepływem:";
			// 
			// label5
			// 
			this->label5->AutoSize = true;
			this->label5->Location = System::Drawing::Point(138, 134);
			this->label5->Name = L"label5";
			this->label5->Size = System::Drawing::Size(56, 13);
			this->label5->TabIndex = 10;
			this->label5->Text = L"Bity stopu:";
			// 
			// label4
			// 
			this->label4->AutoSize = true;
			this->label4->Location = System::Drawing::Point(138, 107);
			this->label4->Name = L"label4";
			this->label4->Size = System::Drawing::Size(61, 13);
			this->label4->TabIndex = 9;
			this->label4->Text = L"Parzystość:";
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Location = System::Drawing::Point(138, 80);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(65, 13);
			this->label3->TabIndex = 8;
			this->label3->Text = L"Bity danych:";
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(138, 53);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(128, 13);
			this->label2->TabIndex = 7;
			this->label2->Text = L"Liczba bitów na sekundę:";
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(138, 26);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(29, 13);
			this->label1->TabIndex = 6;
			this->label1->Text = L"Port:";
			// 
			// comboBox6
			// 
		this->comboBox6->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"SelectedIndex", ::app::Default, L"DBcomboBox6SelectedIndex", 
				true, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
			this->comboBox6->FormattingEnabled = true;
			this->comboBox6->Location = System::Drawing::Point(288, 158);
			this->comboBox6->Name = L"comboBox6";
			this->comboBox6->Size = System::Drawing::Size(121, 21);
			this->comboBox6->TabIndex = 12;
			// 
			// comboBox5
			// 
		this->comboBox5->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"SelectedIndex", ::app::Default, L"DBcomboBox5SelectedIndex", 
				true, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
			this->comboBox5->FormattingEnabled = true;
			this->comboBox5->Location = System::Drawing::Point(288, 131);
			this->comboBox5->Name = L"comboBox5";
			this->comboBox5->Size = System::Drawing::Size(121, 21);
			this->comboBox5->TabIndex = 13;
			// 
			// comboBox4
			// 
		this->comboBox4->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"SelectedIndex", ::app::Default, L"DBcomboBox4SelectedIndex", 
				true, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
			this->comboBox4->FormattingEnabled = true;
			this->comboBox4->Location = System::Drawing::Point(288, 104);
			this->comboBox4->Name = L"comboBox4";
			this->comboBox4->Size = System::Drawing::Size(121, 21);
			this->comboBox4->TabIndex = 14;
			// 
			// comboBox3
			// 
		this->comboBox3->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"SelectedIndex", ::app::Default, L"DBcomboBox3SelectedIndex", 
			true, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
		this->comboBox3->Items->AddRange(gcnew cli::array< System::Object^  >(4) {L"55", L"66", L"77", L"88"});
			this->comboBox3->FormattingEnabled = true;
			this->comboBox3->Location = System::Drawing::Point(288, 77);
			this->comboBox3->Name = L"comboBox3";
			this->comboBox3->Size = System::Drawing::Size(121, 21);
			this->comboBox3->TabIndex = 15;
			// 
			// comboBox2
			// 
		this->comboBox2->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"SelectedIndex", ::app::Default, L"DBcomboBox2SelectedIndex", 
			true, System::Windows::Forms::DataSourceUpdateMode::OnValidation)));
	

			this->comboBox2->FormattingEnabled = true;
			this->comboBox2->Items->AddRange(gcnew cli::array< System::Object^  >(4) {L"5", L"6", L"7", L"8"});
			this->comboBox2->Location = System::Drawing::Point(288, 50);
			this->comboBox2->Name = L"comboBox2";
			this->comboBox2->Size = System::Drawing::Size(121, 21);
			this->comboBox2->TabIndex = 16;
			// 
			// comboBox1
			// 
			this->comboBox1->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Name", ::app::Default, L"DBcomboBox1SelectedIndex", 
				true, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
			this->comboBox1->FormattingEnabled = true;
			this->comboBox1->Location = System::Drawing::Point(288, 23);
			this->comboBox1->Name = L"comboBox1";
			this->comboBox1->Size = System::Drawing::Size(121, 21);
			this->comboBox1->TabIndex = 17;
			this->comboBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &MyForm1::comboBox1_SelectedIndexChanged);
			// 
			// tabPage2
			// 
			this->tabPage2->Location = System::Drawing::Point(4, 22);
			this->tabPage2->Name = L"tabPage2";
			this->tabPage2->Padding = System::Windows::Forms::Padding(3);
			this->tabPage2->Size = System::Drawing::Size(656, 316);
			this->tabPage2->TabIndex = 1;
			this->tabPage2->Text = L"Konfiguracja Połączenia";
			this->tabPage2->UseVisualStyleBackColor = true;
			// 
			// MyForm1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(896, 390);
			this->Controls->Add(this->tabControl1);
			this->Name = L"MyForm1";
			this->Text = L"MyForm1";
			this->Load += gcnew System::EventHandler(this, &MyForm1::MyForm1_Load);
			this->tabControl1->ResumeLayout(false);
			this->tabPage1->ResumeLayout(false);
			this->tabPage1->PerformLayout();
			this->ResumeLayout(false);

		}
#pragma endregion
		private: app ^ appss;
	private: System::Void comboBox1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
			 }
private: System::Void MyForm1_Load(System::Object^  sender, System::EventArgs^  e) {
			  
		 }
		 private: System::Void MyForm1_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e) {

		
				    appss->DBcomboBox2SelectedIndex=System::Convert::ToString(this->comboBox2->SelectedIndex);
	//				apps->DBcomboBox3SelectedIndex=form1->comboBox3->SelectedIndex;
	//			    apps->DBcomboBox4SelectedIndex=form1->comboBox4->SelectedIndex;
	//				apps->DBcomboBox5SelectedIndex=form1->comboBox5->SelectedIndex;
	//				apps->DBcomboBox6SelectedIndex=form1->comboBox6->SelectedIndex;
			
		 }
};



///////////////////////////////////
///////////////xxxxxxxxxxxxx
//////////////////////////////////////











	/// <summary>
	/// Summary for MyForm
	/// </summary>
	public ref class MyForm : public System::Windows::Forms::Form
	{
	public:
		MyForm(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		//	apps = gcnew app;
			form1 = gcnew MyForm1;
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~MyForm()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::CheckBox^  checkBox1;
	private: System::Windows::Forms::MenuStrip^  menuStrip1;
	private: System::Windows::Forms::ToolStripMenuItem^  plikToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  ustawieniaToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  konfiguracjaProgramuToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  pomocToolStripMenuItem;
	protected: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>


		void InitializeComponent(void)
		{
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
			this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
			this->plikToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->ustawieniaToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->pomocToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->konfiguracjaProgramuToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->menuStrip1->SuspendLayout();
			this->SuspendLayout();
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(51, 55);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(0, 13);
			this->label1->TabIndex = 0;
			// 
			// checkBox1
			// 
			this->checkBox1->AutoSize = true;
	//x		this->checkBox1->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Checked", ::app::Default, L"testowa", true, System::Windows::Forms::DataSourceUpdateMode::OnPropertyChanged)));
			
this->checkBox1->Location = System::Drawing::Point(39, 86);
			this->checkBox1->Name = L"checkBox1";
			this->checkBox1->Size = System::Drawing::Size(80, 17);
			this->checkBox1->TabIndex = 1;
			this->checkBox1->Text = L"checkBox1";
			this->checkBox1->UseVisualStyleBackColor = true;
			// 
			// menuStrip1
			// 
			this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->plikToolStripMenuItem, 
				this->ustawieniaToolStripMenuItem, this->pomocToolStripMenuItem});
			this->menuStrip1->Location = System::Drawing::Point(0, 0);
			this->menuStrip1->Name = L"menuStrip1";
			this->menuStrip1->Size = System::Drawing::Size(608, 24);
			this->menuStrip1->TabIndex = 2;
			this->menuStrip1->Text = L"menuStrip1";
			// 
			// plikToolStripMenuItem
			// 
			this->plikToolStripMenuItem->Name = L"plikToolStripMenuItem";
			this->plikToolStripMenuItem->Size = System::Drawing::Size(38, 20);
			this->plikToolStripMenuItem->Text = L"Plik";
			// 
			// ustawieniaToolStripMenuItem
			// 
			this->ustawieniaToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->konfiguracjaProgramuToolStripMenuItem});
			this->ustawieniaToolStripMenuItem->Name = L"ustawieniaToolStripMenuItem";
			this->ustawieniaToolStripMenuItem->Size = System::Drawing::Size(76, 20);
			this->ustawieniaToolStripMenuItem->Text = L"Ustawienia";
			// 
			// pomocToolStripMenuItem
			// 
			this->pomocToolStripMenuItem->Name = L"pomocToolStripMenuItem";
			this->pomocToolStripMenuItem->Size = System::Drawing::Size(57, 20);
			this->pomocToolStripMenuItem->Text = L"Pomoc";
			// 
			// konfiguracjaProgramuToolStripMenuItem
			// 
			this->konfiguracjaProgramuToolStripMenuItem->Name = L"konfiguracjaProgramuToolStripMenuItem";
			this->konfiguracjaProgramuToolStripMenuItem->Size = System::Drawing::Size(197, 22);
			this->konfiguracjaProgramuToolStripMenuItem->Text = L"Konfiguracja Programu";
			this->konfiguracjaProgramuToolStripMenuItem->Click += gcnew System::EventHandler(this, &MyForm::konfiguracjaProgramuToolStripMenuItem_Click);
			// 
			// MyForm
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(608, 304);
			this->Controls->Add(this->checkBox1);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->menuStrip1);
			this->MainMenuStrip = this->menuStrip1;
			this->Name = L"MyForm";
			this->Text = L"MyForm";
			this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &MyForm::MyForm_FormClosing);
			this->Load += gcnew System::EventHandler(this, &MyForm::MyForm_Load);
			this->menuStrip1->ResumeLayout(false);
			this->menuStrip1->PerformLayout();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: app ^ apps;
			 MyForm1 ^ form1;
	
	
	private: System::Void MyForm_Load(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void MyForm_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e) {

				
	
		
		//x	 apps->testowa=checkBox1->Checked;
		//x		 apps->Save();
				
		
			
			 }
	private: System::Void konfiguracjaProgramuToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {


form1->Show ();
			 }
};





}




/////////////////////////////////////////////////////////////////////////
//app.h
//////////////////////////////////////////////////////////////////////////////////

[System::Runtime::CompilerServices::CompilerGeneratedAttribute()] [System::CodeDom::Compiler::GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] private ref class app : public System::Configuration::ApplicationSettingsBase { private: static app^ defaultInstance = ((app^)System::Configuration::ApplicationSettingsBase::Synchronized(gcnew app())); public: static property app^ Default { app^ get() { return defaultInstance; } } 

[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("False")] property System::Boolean testowa { System::Boolean get() { return ((System::Boolean)(this["testowa"])); } void set(System::Boolean value) { this["testowa"] = value; } }
[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("0")] property System::String ^DBcomboBox1SelectedIndex { System::String ^ get() { return ((System::String^)(this["DBcomboBox1SelectedIndex"])); } void set(System::String ^value) { this["DBcomboBox1SelectedIndex"] = value; }} ; 
[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("0")] property System::String ^DBcomboBox2SelectedIndex { System::String ^ get() { return ((System::String^)(this["DBcomboBox2SelectedIndex"])); } void set(System::String ^value) { this["DBcomboBox2SelectedIndex"] = value; }} ; 
[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("0")] property System::Boolean DBcomboBox3SelectedIndex { System::Boolean get() { return ((System::Boolean)(this["DBcomboBox3SelectedIndex"])); } void set(System::Boolean value) { this["DBcomboBox3SelectedIndex"] = value; }} ;
[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("0")] property System::Boolean DBcomboBox4SelectedIndex { System::Boolean get() { return ((System::Boolean)(this["DBcomboBox4SelectedIndex"])); } void set(System::Boolean value) { this["DBcomboBox4SelectedIndex"] = value; }}; 
[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("0")] property System::Boolean DBcomboBox5SelectedIndex { System::Boolean get() { return ((System::Boolean)(this["DBcomboBox5SelectedIndex"])); } void set(System::Boolean value) { this["DBcomboBox5SelectedIndex"] = value; }} ; 
[System::Configuration::UserScopedSettingAttribute()] [System::Diagnostics::DebuggerNonUserCodeAttribute()] [System::Configuration::DefaultSettingValueAttribute("0")] property System::Boolean DBcomboBox6SelectedIndex { System::Boolean get() { return ((System::Boolean)(this["DBcomboBox6SelectedIndex"])); } void set(System::Boolean value) { this["DBcomboBox6SelectedIndex"] = value; }} ; 
};






////////////////////////////////////////
////app.config
///////////////////////////////////////


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="app" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <userSettings>
        <app>
            <setting name="fs" serializeAs="String">
                <value>label1</value>
            </setting>
            <setting name="testowa" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="DBcomboBox1SelectedIndex" serializeAs="String">
                <value>0</value>
            </setting>
            <setting name="DBcomboBox2SelectedIndex" serializeAs="String">
                <value>0</value>
            </setting>
            <setting name="DBcomboBox3SelectedIndex" serializeAs="String">
                <value>0</value>
            </setting>
            <setting name="DBcomboBox4SelectedIndex" serializeAs="String">
                <value>0</value>
            </setting>
            <setting name="DBcomboBox5SelectedIndex" serializeAs="String">
                <value>0</value>
            </setting>
            <setting name="DBcomboBox6SelectedIndex" serializeAs="String">
                <value>0</value>
            </setting>
        </app>
    </userSettings>
</configuration>