Solved

Creating control that don't have interface

Posted on 2011-03-01
10
301 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 39

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
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 334 total points
ID: 35010228
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 62

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now