等价的“阴影”在VB.Net? [英] Equvalent of "Shadows" in VB.Net?

查看:108
本文介绍了等价的“阴影”在VB.Net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试隐藏我的自定义用户控件派生控件的事件,

类似于Shadows的内容。在VB.Net中,虽然事件隐藏在

PropertyGrid中,但是从CodeEditor我仍然可以看到/到达它。我使用这段代码:


[EditorBrowsable(EditorBrowsableState.Never)]


[可浏览(假)]

>
新的公共活动EventHandler BackColorChanged;


有人知道这方面的解决方案吗?


提前谢谢,


?zden

Hi,

I''m trying to hide an event of my custom usercontrol derived control,
something like "Shadows" in VB.Net, but although the event is hidden from
PropertyGrid, from CodeEditor I can still see/reach it. I use this code :



[Browsable(false)]

new public event EventHandler BackColorChanged;

Does anybody knows a solution for this?

Thanks in advance,

?zden

推荐答案

尝试将活动标记为受保护或内部。


-

HTH


Kyril Magnos

我不再是开发人员,我是'现在是软件工程师! :-)


"?zden Irmak" < ozdenirmakatisnetdotnetdottr>在消息中写道

news:uZ ************** @ TK2MSFTNGP10.phx.gbl ...

|

|

|我正在尝试隐藏我的自定义usercontrol派生控件的事件,

|像阴影之类的东西在VB.Net中,但是事件是隐藏的

| PropertyGrid,来自CodeEditor我仍然可以看到/到达它。我用这个代码:

|

| [EditorBrowsable(EditorBrowsableState.Never)]

|

| [可浏览(假)]

|

|新的公共事件EventHandler BackColorChanged;

|

|有人知道这方面的解决方案吗?

|

|在此先感谢,

|

| ?zden

|

|
Try marking the event as protected or internal.

--
HTH

Kyril Magnos
"I''m not a developer anymore, I''m a software engineer now!" :-)

"?zden Irmak" <ozdenirmakatisnetdotnetdottr> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
| Hi,
|
| I''m trying to hide an event of my custom usercontrol derived control,
| something like "Shadows" in VB.Net, but although the event is hidden from
| PropertyGrid, from CodeEditor I can still see/reach it. I use this code :
|
|
|
| [Browsable(false)]
|
| new public event EventHandler BackColorChanged;
|
| Does anybody knows a solution for this?
|
| Thanks in advance,
|
| ?zden
|
|


亲爱的Kyril,


感谢您的建议,但我已经尝试过没有成功...


还有其他任何建议吗?


再次感谢..


?zden


" Kyril Magnos" < KY ********** @ yahoo.com>在消息中写道

新闻:O2 ************** @ tk2msftngp13.phx.gbl ...
Dear Kyril,

Thanks for the suggestion but I already tried it at got no success...

Any other suggestion?

Thanks again..

?zden

"Kyril Magnos" <ky**********@yahoo.com> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
尝试将事件标记为保护或内部。

-
HTH

Kyril Magnos
我不再是开发人员,我是软件工程师现在"!; :-)

"?zden Irmak" < ozdenirmakatisnetdotnetdottr>在消息中写道
新闻:uZ ************** @ TK2MSFTNGP10.phx.gbl ...
|
|
|我正在尝试隐藏自定义usercontrol派生控件的事件,
|像阴影之类的东西在VB.Net中,但是事件隐藏了
来自| PropertyGrid,来自CodeEditor我仍然可以看到/到达它。我用这个代码
:|
| [EditorBrowsable(EditorBrowsableState.Never)]
|
| [可浏览(假)]
|
|新的公共事件EventHandler BackColorChanged;
|
|有人知道这方面的解决方案吗?
|
|在此先感谢,
|
| ?zden
|
|
Try marking the event as protected or internal.

--
HTH

Kyril Magnos
"I''m not a developer anymore, I''m a software engineer now!" :-)

"?zden Irmak" <ozdenirmakatisnetdotnetdottr> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
| Hi,
|
| I''m trying to hide an event of my custom usercontrol derived control,
| something like "Shadows" in VB.Net, but although the event is hidden from | PropertyGrid, from CodeEditor I can still see/reach it. I use this code : |
|
|
| [Browsable(false)]
|
| new public event EventHandler BackColorChanged;
|
| Does anybody knows a solution for this?
|
| Thanks in advance,
|
| ?zden
|
|



嗯,没有将活动标记为私人,没有。


在什么范围内使用此事件?只有控件内部使用的是
?或者,控制的消费者能否注册参加活动?


-

HTH


Kyril


"?zden Irmak" < ozdenirmakatisnetdotnetdottr>在消息中写道

新闻:eC ************* @ tk2msftngp13.phx.gbl ...

|亲爱的Kyril,

|

|感谢您的建议,但我已经尝试过没有成功...

|

|还有其他建议吗?

|

|再次感谢..

|

| ?zden

|

| Kyril Magnos < KY ********** @ yahoo.com>在消息中写道

|新闻:O2 ************** @ tk2msftngp13.phx.gbl ...

| >尝试将事件标记为受保护或内部。

| >

| > -

| > HTH

| >

| > Kyril Magnos

| > 我不再是开发人员,我现在是一名软件工程师! :-)

| >

| > ?zden Irmak < ozdenirmakatisnetdotnetdottr>在消息中写道

| >新闻:uZ ************** @ TK2MSFTNGP10.phx.gbl ...

| > |

| > |

| > |我正在尝试隐藏我的自定义usercontrol派生控件的事件,

| > |像阴影之类的东西在VB.Net中,但是事件被隐藏了

|来自

| > | PropertyGrid,来自CodeEditor我仍然可以看到/到达它。我用这个

代码

| :

| > |

| > | [EditorBrowsable(EditorBrowsableState.Never)]

| > |

| > | [可浏览(假)]

| > |

| > |新的公共事件EventHandler BackColorChanged;

| > |

| > |有人知道这方面的解决方案吗?

| > |

| > |在此先感谢,

| > |

| > | ?zden

| > |

| > |

| >

| >

|

|
Hmm, short of marking the event private, no.

In what scope will this event be used? It is something that will only be
used internally by the control? Or, will consumers of the control be able to
register for the event?

--
HTH

Kyril

"?zden Irmak" <ozdenirmakatisnetdotnetdottr> wrote in message
news:eC*************@tk2msftngp13.phx.gbl...
| Dear Kyril,
|
| Thanks for the suggestion but I already tried it at got no success...
|
| Any other suggestion?
|
| Thanks again..
|
| ?zden
|
| "Kyril Magnos" <ky**********@yahoo.com> wrote in message
| news:O2**************@tk2msftngp13.phx.gbl...
| > Try marking the event as protected or internal.
| >
| > --
| > HTH
| >
| > Kyril Magnos
| > "I''m not a developer anymore, I''m a software engineer now!" :-)
| >
| > "?zden Irmak" <ozdenirmakatisnetdotnetdottr> wrote in message
| > news:uZ**************@TK2MSFTNGP10.phx.gbl...
| > | Hi,
| > |
| > | I''m trying to hide an event of my custom usercontrol derived control,
| > | something like "Shadows" in VB.Net, but although the event is hidden
| from
| > | PropertyGrid, from CodeEditor I can still see/reach it. I use this
code
| :
| > |
| > |
| > |
| > | [Browsable(false)]
| > |
| > | new public event EventHandler BackColorChanged;
| > |
| > | Does anybody knows a solution for this?
| > |
| > | Thanks in advance,
| > |
| > | ?zden
| > |
| > |
| >
| >
|
|


这篇关于等价的“阴影”在VB.Net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆