Solved

Creating control that don't have interface

Posted on 2011-03-01
10
303 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem!!! 8 33
Regular expression help 2 25
Need help with a Crystal Report in my C#.Net application 2 16
Release Dynamically Allocated Memory in C# 3 28
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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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