|
-
February 6th, 2011, 02:17 AM
#1
Creating Custom Multiline TextBox (Memo)
Ok, I want to start off by developing a Memo component having InsertAt(), RemoveAt(),etc. features to ease me in future projects. But I don't have an idea so as where to start from.
* How can I inherit the System.TextBox control. (Just straight away in a C# class or do I have to make a new project)
* I need that control to be later available in the Developer Toolbox. How can I integrate it.
Or is there any visual class I'm missing that enacts the Memo component. (Not the ArrayList, but a visual component)
Any help is appreciated. Thanks
-
February 6th, 2011, 03:14 AM
#2
Re: Creating Custom Multiline TextBox (Memo)
 Originally Posted by nbaztec
* How can I inherit the System.TextBox control. (Just straight away in a C# class or do I have to make a new project)
Not sure what you mean by that. All of your classes will be contained in a project. You inherit from the TextBox class just like you would any other class.
* I need that control to be later available in the Developer Toolbox. How can I integrate it.
Classes that derive from Control will be added to the toolbox automatically after you build the project.
-
February 6th, 2011, 03:42 AM
#3
Re: Creating Custom Multiline TextBox (Memo)
 Originally Posted by BigEd781
Not sure what you mean by that. All of your classes will be contained in a project. You inherit from the TextBox class just like you would any other class.
Classes that derive from Control will be added to the toolbox automatically after you build the project.
I overcame the inheritance & integration problem. (Inherited from UserControl, added a TextBox then added to Toolbox using compiled DLL).
But now I need to incorporate a feature by combining the best of TextBox & ArrayList to create a TMemo.
I hence need to be able to update the ArrayList property automatically whenever the TextBox in my component is updated. So whenever I call Memo.Sort(), it should automatically store the TextBox.Text property to ArrayList object from where it Sorts using ArrayList.Sort() then store back to TextBox.Text.
One way is to create custom methods binding all. Is there any way other than this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|