• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

Creating control that don't have interface

How can I create a control that don't have UI, same like (Timer, ContextMenuStrip, BackgroundWorker)?
Mohamed Abowarda
Mohamed Abowarda
3 Solutions
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.
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.

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Mike TomlinsonMiddle School Assistant TeacherCommented:
Fernando SotoCommented:
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,

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now