Access to "CreatingControls.InstallerControl.InitializeComponent ()" is not possible because of the security level
Hallo I am a beginning programmer and facing already different types of problems. Could anybody perhaps be so kind to assist/deal with this one for example.
Access to "CreatingControls.InstallerControl.InitializeComponent ()" is not possible because of the security level (Original in German: "Der Zugriff auf "CreatingControls开发者_JAVA技巧.InstallerControl.InitializeComponent()" ist aufgrund der Sicherheitsebene nicht möglich. ...")
My current and base classes are all public. But I can't inialize the components? any idea is duly appreciated.
debru
InitializeComponent is automatically generated by VisualStudio when you create a new Form. It is declared as private and thus cannot be accessed from outside the class. You should make sure that you are not trying to call it from anywhere else, it is basically intended to give the Form Designer a single place to initialize the components of a form.
Don't edit the code-behind. If you want to change the way a control looks/works/init go to the designer and use that. This will change the correct things.
精彩评论