Good evening everyone, I added a new visual connectionstring in C # property

but I can not find how to assign it to the OleDbConnection object in a new class Connection
Code
using System;Code
using System.Collections.Generic;Code
using System.Linq;Code
using System.Text;Code
using System.Data.OleDb;Code
namespace GestionReglement.ModeleCode
{Code
class connexionCode
{Code
private OleDbConnection con = null;Code
public OleDbConnection getconnexion()Code
{Code
con = new OleDbConnection();Code
return con;Code
}Code
}Code
}

Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Nov 23, 2015, 7:29 AM EST
string myMdbConnectionString= Properties.Settings.Default.mdbConnectionString;