Adding Event on a .NET User Control
$30-100 USD
Paid on delivery
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.
Project ID: #93016
About the project
7 freelancers are bidding on average $74 for this job
We are well experianced in MySQL + PHP and VB,C#, ASP.NET + MSSQL platforms, will develop your project upto your entire satisfaction.