Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application startup
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00904424
Message ID:
00904567
Views:
22
Simon,

>1) Can I visually subclass the MM.Net controls? I searched for subclassing in the documentation but I cannot find it mentioned. Isn't that the first thing anyone should do?

Unfortunately, there is no visual subclassing in .NET (this comes as a surprise to many people). To create a subclass of a user interface control you can do the following:

1. Create a new Windows or Web Controls project

2. For each UI control you want to subclass, add a new Component to the project (Right-click the project and select Add | Add Component from thet shortcut menu. I recommend giving the new class your own two-character prefix so you can always tell the difference between your classes, MM .NET classes and MS .NET Framework classes.

3. Change the base class to the component you want to subclass from. For example:
Public Class xxTextBox
   Inherits OakLeaf.MM.Main.Windows.Forms.mmTextBox
End Class
>2) I need to have a security login screen to validate a login with a SQL2000 backend. Can I define a form which contains this logic, then if that is OK, instantiate an MDI parent that contains my application menu? Or can I add a menu to an MDI parent form after logging in? I don't want anyone to be able to see the menu and toolbar for that matter until they are through security.

This is already part and parcel of MM .NET. Check out the MM .NET Dev Guide topic "Enabling User Security in a Windows Forms Application", located under the "Application Security" section.

Regards,

>Thanks in advance,
>Simon
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform