开发者

Allow IExtenderProvider control to attach to controls on a UserControl

开发者 https://www.devze.com 2022-12-24 08:32 出处:网络
VB.NET 2.0 Framework I developed a control that implements IExtenderProvider in order to attach to controls and display a form for translating of the text of that control.This works great on regular

VB.NET 2.0 Framework

I developed a control that implements IExtenderProvider in order to attach to controls and display a form for translating of the text of that control. This works great on regular controls on the form but the IExtenderProvider is not attaching to controls on UserControls by default.

Is it possible to modify the UserControl or my IExtenderProvider control to enable it to attach to controls on a UserControl?

开发者_C百科

Thanks!


If you own the source code to the IExtenderProvider or UserControl, just change the implemenation to 1) have the extender "dig" into the UserControl.Controls property or 2) have the UserControl expose properties that wrap the control properties that will be extended. [If an extender extends a TextBox control, you cannot make a UserControl look like a TextBox no matter what properties are exposed.]

0

精彩评论

暂无评论...
验证码 换一张
取 消