473,466 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Building your own controls

Hi,

I would like to build my own controls from the ground up. Just as if the
Combobox didn't excist and I wanted to create this 'new control' with all is
glorious functionality. Is there a technology used for this purpose in .net.

Regards
Jesper.
May 8 '07 #1
5 1438
Suggestion: Before you reinvent the wheel, study how the wheel was
originally built. Get yourself a copy of Lutz Roeder's "Reflector", load the
appropriate Framework assembly, and disassemble the ComboBox class.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Jesper, Denmark" wrote:
Hi,

I would like to build my own controls from the ground up. Just as if the
Combobox didn't excist and I wanted to create this 'new control' with all is
glorious functionality. Is there a technology used for this purpose in .net.

Regards
Jesper.
May 8 '07 #2
Jesper,

You would want to derive from the Control class in this case.

I don't know if that is exactly what you want, I get the feeling that
you are looking for tools as well to help you build your control? If that
is the case, there isn't much in VS.NET to help you with this. Because you
are building your control from the ground up, you have to handle everything,
like painting, response to mouse input, keyboard input, etc, etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in message
news:E0**********************************@microsof t.com...
Hi,

I would like to build my own controls from the ground up. Just as if the
Combobox didn't excist and I wanted to create this 'new control' with all
is
glorious functionality. Is there a technology used for this purpose in
.net.

Regards
Jesper.

May 8 '07 #3
The ControlPaint class can help quite a bit with painting, at least. But
yes, it is entirely your responsibility to say what and when.

Of course, if you simply want a variation of an existing control, you might
be better off inheriting from it and adding the custom functionality you
want, instead of reinventing something from scratch. You can also derive
from UserControl.

--
Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Fish Grid .NET Light: Powerful Layouts for Small Datasets
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:Oo**************@TK2MSFTNGP03.phx.gbl...
Jesper,

You would want to derive from the Control class in this case.

I don't know if that is exactly what you want, I get the feeling that
you are looking for tools as well to help you build your control? If that
is the case, there isn't much in VS.NET to help you with this. Because
you are building your control from the ground up, you have to handle
everything, like painting, response to mouse input, keyboard input, etc,
etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in
message news:E0**********************************@microsof t.com...
>Hi,

I would like to build my own controls from the ground up. Just as if the
Combobox didn't excist and I wanted to create this 'new control' with all
is
glorious functionality. Is there a technology used for this purpose in
.net.

Regards
Jesper.


May 8 '07 #4
On May 8, 5:44 am, Jesper, Denmark
<JesperDenm...@discussions.microsoft.comwrote:
Hi,

I would like to build my own controls from the ground up. Just as if the
Combobox didn't excist and I wanted to create this 'new control' with all is
glorious functionality. Is there a technology used for this purpose in .net.
If you are doing this as a learning exercise, then I would follow
Peter's suggestion and get a copy of Reflector.

If you have a particular application in mind, then I would suggest
that this type of thing is going to be much easier in WPF / Avalon
than in the current Windows Forms as it appears in .NET. Get your
hands on a beta copy of Visual Studio Orcas and start reading up on
Windows Presentation Framework. It allows far more control over
customization of controls than does Windows Forms. (The only catch is
that it's beta... or 1.0, depending upon how you want to look at it.)

May 8 '07 #5
You can do that by WebUserControl

--
Every thing is perfect, as long as you share!!!

Don''t forget to rate the post
"Jesper, Denmark" wrote:
Hi,

I would like to build my own controls from the ground up. Just as if the
Combobox didn't excist and I wanted to create this 'new control' with all is
glorious functionality. Is there a technology used for this purpose in .net.

Regards
Jesper.
May 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Hanson | last post by:
Hi All, We are researching the building an MFC ActiveX control project using VS.NET 2003 and I am asking for any references,books that can help. If I am deriving from a tabcontrol, can I use...
3
by: Billy Porter | last post by:
Any ideas? -- Thanks, Billy
4
by: Brian Shannon | last post by:
I have 3 combo boxes and two date text boxes on a .aspx page. The user can fill in any of the 5 controls or none to filter a datagrid. I was hoping someone could explain how to efficiently build...
1
by: Nish | last post by:
Can you please suggest any good resources to build ASP.Net Server controls? Thanks, Nish
0
by: Irfan Akram | last post by:
Hello People, I would appreciate your responses on this. I am writing an asp.net web-application involving C#. I am actually building a test hierarchy at the moment, which involves producing...
0
by: Lucas Tam | last post by:
Is there a website or tutorial on how to build Winforms Controls hosted in IE? I tried building one a few months ago... but ran into several issues such as: -inability to use 3rd party...
2
by: Rob Meade | last post by:
Hi all, I did this once before when I first started using .net - got as far as getting something to appear on a toolbar in Visual Studio 2003 I think....cant remember what I did now though -...
12
by: Ludwig | last post by:
Hi all, we are building our own class library framework, with stuff in it that can be used in various projects at various clients. Initially we had 4 assemblies with everything in it. Of...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.