Creating control that don't have interface

How can I create a control that don't have UI, same like (Timer, ContextMenuStrip, BackgroundWorker)?
LVL 12
Mohamed AbowardaSoftware EngineerAsked:
Who is Participating?
Kyle AbrahamsSenior .Net DeveloperCommented:
What kind of application?

Normally you use the code behind (right click on UI -> view code).
Anil GolamariCommented:
You can also use the Property box of that particular control to build it.
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Mohamed AbowardaSoftware EngineerAuthor Commented:
When you add some controls like Timer, BackgroundWorker, it don't show interface (the user can't see it, it can only be used by code) unlike Button, TextBox, etc..., I want to create a control that don't have user interface, it can only be used by the code.

Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Fernando SotoConnect With a Mentor RetiredCommented:
Hi Medo3337;

Objects such as (Timer, ContextMenuStrip, BackgroundWorker) are Components. You can create non-visual components by inheriting from IComponent. This walkthrough will show how to create a component.

Walkthrough: Authoring a Component with Visual C#

Mohamed AbowardaSoftware EngineerAuthor Commented:
One more additional thing, I want to add property in the component that contains list with checkboxes, how to do that?
Mohamed AbowardaSoftware EngineerAuthor Commented:
The main idea of the component is to manage multiple controls in the parent form

There will be a property called "Controls", this property will contain a list of the parent form controls names, the developer will be able to check multiple controls names in the list.


Property that allow the developer to add controls names, so the component will know which controls to perform actions on.
Mohamed AbowardaSoftware EngineerAuthor Commented:
The answer is incomplete.

However, thanks,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.