Adding Event on a .NET User Control

已取消 已发布的 Sep 27, 2006 货到付款
已取消 货到付款

There is an C# Windows User Control for editing html document.

[url removed, login to view];tabindex=10

1] This control doesn't have any event for changing innerHTML. I mean, if the innerHTML is changed, an event should be triggered same like a TextBox has TextChanged event.

2]In addition to the previous requirement, I would want to add another feature on this User Control, that is,

"MAKE THE InnerHTML property boundable to a datasource."

I mean, I want to bind the InnerHTML prpoperty to a data member of a binding source.

- Please use Visual Studio 2005 (.NET 2.0)

Attachment

===================================================================

I have attached the Opensource C# project file.

=============== Details about the Requirements ====================

In order to give you a clue, just take this code,

Once you develop the Event Handler for InnrHTML, you can override that event handler with the following code

private void innerHtml_TextChanged(..........)

{

PropertyDescriptor innerHtmlPropertyDescriptor = [url removed, login to view](null)["someDataMember_of_type_string"];

[url removed, login to view]([url removed, login to view], [url removed, login to view]);

}

private void myBindingSource_CurrentChanged(object sender, EventArgs e)

{

PropertyDescriptor innerHtmlPropertyDescriptor = [url removed, login to view](null)["someDataMember_of_type_string"];

[url removed, login to view] = (string)[url removed, login to view]([url removed, login to view]);

}

......................................

Now, This is the actual piece of code I think all you need. But What I want is as follows :

1] I dont want to see these codes other than designer.cs. I just want a piece of mind about dragging the control from toolbox on to the Windows form. Then when I will double click the form, the default event handler will be created as innerHTml_Changed(......) in my code behind C# file. then I should be able to enter my business logic for this event,

2] At the same way, I dont want to scatter logic on a binding source's Current Change event handler. I should be able to use Visual Studio 2005 Property editor for the htmlEditor control by selecting the control in design mode. Then, within property editor, I should be able to choose a bindingsource's data member (of course STRING type) to bind with innerHTML property. Then whenever I scroll over the binding source using a Binding Navigator Control, the htmlEditor should be loaded with new value from the bindingSource automatically without writing any code (same like we bind Text property to a binding source;'s data member of TEXT_BOX Control). In that way I will also be able to choose this htmlEditor control for any text dataMember of any dataSource within the design mode of Visual Studio 2005.

I hope I could explain you the point.

==============

Budget

================================================================

Budget is the cheapest around 30$. The lowest cost bidder will win the bid.

Thanks

CircuiTech Group.

.NET

项目ID: #93016

关于项目

7个方案 远程项目 活跃的Sep 29, 2006

有7名威客正在参与此工作的竞标,均价$74/小时

vip

Dear Sir/Madam, I have all required knowledge and experience to achieve success of this project with best quality and professionalism. Please see my profile. Before accepting my bid offer please contact me via proj 更多

$99 USD 在2天内
(27条评论)
6.1
CPR

We are well experianced in MySQL + PHP and VB,C#, ASP.NET + MSSQL platforms, will develop your project upto your entire satisfaction.

$72USD 在1天里
(1条评论)
3.1
anoopep

We can do the task

$50 USD 在5天内
(1条评论)
2.8
sharptech

We are web design ,graphic design and website development company comprises a pool of professionals who deliver quality work on a wide range of communication web site design and web application projects. The web desi 更多

$90 USD 在6天内
(0条评论)
0.0