Search:
Namespaces
Discussions
.NET v1.1
Feedback
Custom Controls
Messages
Related Types
This message was discovered on
ASPFriends.com 'winforms-cs' list
.
Stephen Rees
Has anyone got any examples on custom controls in WinForms, nothing
sopectacular, just something that gives the basics. There is currently a
nice knob control ( ahem, ahem) at CSharpCorner.com.
I haven't looked at it yet but am about to, it should be helpful.
That one is obviously going to be fully owner drawn.
The measly single example (the one I can find) in the VS net help don't
really do anything, just add another property to an extended combo or text
box.
What I am after is this. At devexpress they seem to drop down all sorts,
calendars and calculators and memo's and all sorts.
I want to know how much of this has been inherited.
If a calculator has been dropped down froma combo, they're going to need to
stop a normal list being dropped down.
How do you inhibit the normal workings of a built in control ?
How do you get the calculateor there ?
Say the calculator was a completely seperate control with its own paint
method etc.
How then would we drop it down from a combo ? Do we just make it appear at
the bottom left of the combo ?
Do we drop it down from a combo, or do we paint a little arrow in the corner
of a text box and drop it down when that is clicked.
Is a combo just an extended text box (albeit with a Currency Manager) that
drops down a list box ?
Rather than get stuck into what we can inherit and what we can overide,
what's best to use that's built in, maybe this, maybe that, what's not ...
we'de probably be just as well off creating a whole set of owner painted,
pure custom controls.
Please can anyone supply any code, links on the subject.
Is it me or is there a distinct lack of help in VS on custom stuff,
especially controls and especially, especially, especially column controls
for the grid.
I'll resort to expensive books and paying for decent code if I eventually
have to, where I'll get the dosh from is anyones guess, sort of need the
code to make some money to pay for the code, know what I mean. If I had it I
would but I ain't so I can't.
Steve.
Reply to this message...
Stephen Rees
Has anyone got any examples on custom controls in WinForms, nothing
sopectacular, just something that gives the basics. There is currently a
nice knob control ( ahem, ahem) at CSharpCorner.com.
I haven't looked at it yet but am about to, it should be helpful.
That one is obviously going to be fully owner drawn.
The measly single example (the one I can find) in the VS net help don't
really do anything, just add another property to an extended combo or text
box.
What I am after is this. At devexpress they seem to drop down all sorts,
calendars and calculators and memo's and all sorts.
I want to know how much of this has been inherited.
If a calculator has been dropped down froma combo, they're going to need to
stop a normal list being dropped down.
How do you inhibit the normal workings of a built in control ?
How do you get the calculateor there ?
Say the calculator was a completely seperate control with its own paint
method etc.
How then would we drop it down from a combo ? Do we just make it appear at
the bottom left of the combo ?
Do we drop it down from a combo, or do we paint a little arrow in the corner
of a text box and drop it down when that is clicked.
Is a combo just an extended text box (albeit with a Currency Manager) that
drops down a list box ?
Rather than get stuck into what we can inherit and what we can overide,
what's best to use that's built in, maybe this, maybe that, what's not ...
we'de probably be just as well off creating a whole set of owner painted,
pure custom controls.
Please can anyone supply any code, links on the subject.
Is it me or is there a distinct lack of help in VS on custom stuff,
especially controls and especially, especially, especially column controls
for the grid.
I'll resort to expensive books and paying for decent code if I eventually
have to, where I'll get the dosh from is anyones guess, sort of need the
code to make some money to pay for the code, know what I mean. If I had it I
would but I ain't so I can't.
Steve.
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com