Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmOptionsDataControl
Hi,
I am having problems getting the selected value out of the mmOptionsDataControl control.
I have put this control on my own login form and added the following event on the Login button.
private void buttonLogin_Click(object sender, EventArgs e)
{
if (this._DataControl.Visible)
{
string sKey = this._DataControl.GetSelectedDatabaseSet();
mmAppBase.DatabaseMgr.DatabaseSetKey = sKey;
}
}
No matter which option I select in the mmOptionsDataControl the value returned by GetSelectedDatabaseSet() is always the value of the DatabaseSetDefault key as set up in the app.config file.
I had a look at the GetSelectedDatabaseSet() code and can't see a problem right off.
Any ideas?
Tim
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement