Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinForms Security
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00938878
Message ID:
00941526
Vues:
24
>You just need to override your application's Factory CreateSecuritySetupForm() method like this...
public class Factory : OakLeaf.MM.Main.Windows.Forms.mmFactoryDesktop
{
	public override OakLeaf.MM.Main.Windows.Forms.mmSecuritySetupForm CreateSecuritySetupForm
		(OakLeaf.MM.Main.Windows.Forms.ImmUISecurity secureControl)
	{
		return new SecuritySetupForm(secureControl);
	}
}
Okay, I got it working fine.

btw, I had to change the constructor in my form to take the same ImmUISecurity parameter as mmSecuritySetupForm, and then call the constructor in the base class, like this:
public SecuritySetupForm(ImmUISecurity secureControl) : base(secureControl)
{
	this.grpUsers.Visible = false;
	this.lstUsers.Visible = false;
	...
}
(I don't call InitializeComponent in my constructor.)

Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform