Shielding .NET Customized Development Components (MSPLUS Original)

xiaoxiao2021-03-06  102

I saw a message from a netizen today:

If you have a problem, ask the brothers, for inheriting existing components in Microsoft .NET Framework, how to block some attributes, is the new component does not provide inheritance, such as inheriting Panel new writing EPANEL, for Panel How does the attribute backcolor shield? ?

This problem solution is as follows:

Step 1: Class-providing services in your control class

[Designer (TypeOf (msplus.web.ui.design.webcontrols.buttondesigner)]]]

[Description

"

Msplus WebControl Button

"

)] [Designer

Typeof

(Msplus.web.ui.design.webcontrols.buttondesigner)]]]

public

SeaD

Class

Button: MsplusWebControl, iPostBackeventhandler

{}

转载请注明原文地址:https://www.9cbs.com/read-124014.html

New Post(0)