Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinForms Security
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00938878
Message ID:
00941526
Views:
28
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform