Creating control that don't have interface

Posted on 2011-03-01
Last Modified: 2012-05-11
How can I create a control that don't have UI, same like (Timer, ContextMenuStrip, BackgroundWorker)?
Question by:Mohamed Abowarda
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 35010099
What kind of application?

Normally you use the code behind (right click on UI -> view code).
LVL 18

Expert Comment

by:Anil Golamari
ID: 35010167
You can also use the Property box of that particular control to build it.
LVL 12

Author Comment

by:Mohamed Abowarda
ID: 35010197
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.

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 334 total points
ID: 35010228
LVL 63

Assisted Solution

by:Fernando Soto
Fernando Soto earned 166 total points
ID: 35010372
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#

LVL 12

Author Comment

by:Mohamed Abowarda
ID: 35010685
One more additional thing, I want to add property in the component that contains list with checkboxes, how to do that?
LVL 86

Accepted Solution

Mike Tomlinson earned 334 total points
ID: 35010734
LVL 12

Author Comment

by:Mohamed Abowarda
ID: 35011304
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.
LVL 12

Author Closing Comment

by:Mohamed Abowarda
ID: 35124439
The answer is incomplete.

However, thanks,

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question