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
Solved

Creating control that don't have interface

Posted on 2011-03-01
10
304 Views
Last Modified: 2012-05-11
How can I create a control that don't have UI, same like (Timer, ContextMenuStrip, BackgroundWorker)?
0
Comment
Question by:Mohamed Abowarda
10 Comments
 
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).
0
 
LVL 18

Expert Comment

by:Anil Golamari
ID: 35010167
You can also use the Property box of that particular control to build it.
http://www.dotnetperls.com/backgroundworker
0
 
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.

Thanks,
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 334 total points
ID: 35010228
0
 
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#

Fernando
0
 
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?
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 334 total points
ID: 35010734
0
 
LVL 12

Author Comment

by:Mohamed Abowarda
ID: 35011304
@Idle_Mind,
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.

OR

Property that allow the developer to add controls names, so the component will know which controls to perform actions on.
0
 
LVL 12

Author Closing Comment

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

However, thanks,
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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