Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security VB forms
Message
From
13/06/2006 16:46:54
Stan Blatti
Shelby Residential & Vocational Services
Memphis, Tennessee, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Security VB forms
Environment versions
Environment:
VB 8.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01128835
Message ID:
01128835
Views:
79
In the Security tutorial, there are references to mm security forms. I see the C# security forms but not VB security forms. Are there any VB Security forms to use as templates?

Also, the control ID's do not show up in properties for any of the menu items after adding mmMenuExtender. Also, I get the error, 'Object reference not set to an instance of an object.' when running the code:
Private Sub FileSecuritySetupBar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FileSecuritySetupBar.Click
        If Me.FileSecuritySetupBar.Checked Then
            Me.FileSecuritySetupBar.Checked = False
            mmAppDesktop.SecuritySetupMode = False
            Me.MmMenuExtender.SetMenuSecuritySetup(Me.Menu.MenuItems, False)
        Else
            Me.FileSecuritySetupBar.Checked = True
            mmAppDesktop.SecuritySetupMode = True
            Me.MmMenuExtender.SetMenuSecuritySetup(Me.Menu.MenuItems, True)
        End If

    End Sub
The third line of each part of the if statement triggers the error. I do not have anything with the name 'mainMenu' as indicated in the Security tutorial. Replacing mainMenu with Menu compiles but gives the resulting error indicating no instance of the object. I have tried every other menu name that seemed appropriate and tried to instantiate an instance of mainMenu as Menu with the change in name in the above code and that also did not work.
Any ideas? Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform