Re: What do I call what I want to do?
- From: Jack Jackson <jjackson@xxxxxxxxxxxxxxxx>
- Date: Fri, 08 Feb 2008 14:04:37 -0800
I have never done this, but I think this is the way to do it.
Create a new project. Select the Class Library template. A stub
class source file for Class1 will be created. Rename that to whatever
you want. Inherit the class from System.Windows.Forms.CommonDialog.
In VB it would look like this:
Public Class Class1
Inherits System.Windows.Forms.CommonDialog
On Fri, 8 Feb 2008 11:14:52 -0600, "Elmo Watson" <sm@xxxxxxxx> wrote:
Picture if you will, the OpenFile dialog ----.
It's listed in the Toolbox, and you can drag it onto your project (it
doesn't get dragged on a form), and you can use and refer to it anywhere in
the project
I want to be able to create an entity like that - a dialog - with properties
that can be referenced in the project through use of the dialog 'entity'
"Jack Jackson" <jjackson@xxxxxxxxxxxxxxxx> wrote in message
news:o2toq3ds9t5u6a09prqdtf4skooin6pmqq@xxxxxxxxxx
Sorry, but I don't think I understand what you want to do.
What do you mean by "can drag it onto the project -- for instance, to
build another Save.."? Do you just want to use this object, or do you
want to modify it (inherit from the existing class)?
On Fri, 8 Feb 2008 08:55:29 -0600, "Elmo Watson" <sm@xxxxxxxx> wrote:
OK - so I'm not calling things perfectly, technically - I totally
understand
how to drag controls onto a form, and how to build a dll
The problem is - I don't know what to call 'things like this' as you call
it....
I want to be able to add it to a project, and once it's compiled, the user
can drag it onto the project - - for instance, to build another Save file
dialog - - it's dragged onto the project, but it's not dragged onto a form
You can then use that dialog anywhere in your project you want
I did what you said to do - create a class library - add an inherited
form -
it doesn't work - it looks for a dll and can't find it. It says 'No built
assemblies contain components to inherit from. Browse and select a
previously built assembly from another application'
So - how can I do this/what do I call a project like this/where can I find
information on this?
(all of the above)
"Jack Jackson" <jjackson@xxxxxxxxxxxxxxxx> wrote in message
news:rbsnq39focs5cbd91vf2etk1eh9bjd767u@xxxxxxxxxx
On Thu, 7 Feb 2008 22:22:56 -0600, "Elmo Watson" <what43@xxxxxxxxx>
wrote:
OK - here's the scenario - I understand the building of a control - a
dll -
so that the developer can drag it onto a form.
That's not correct. A control is a class. Classes exist in .dll or
.exe files.
That's NOT what I need to do.
Picture the FolderBrowserDialog and the Save and Open File Dialogs - I
need
to build a 'control' I guess you'd call it - a dialog control that the
user
can call just like any of the other dialogs, and it has properties,
etc -
I
just need to be able to compile it let multiple users here use it.
That sounds like a form. Create a new Class Library project.
Click on Project -> Create New Item. Select Inherited Form. Drag
controls from the toolbar onto the form.
I strongly suggest that you get some kind of book that will show you
how to do things like this.
- References:
- What do I call what I want to do?
- From: Elmo Watson
- Re: What do I call what I want to do?
- From: Jack Jackson
- Re: What do I call what I want to do?
- From: Elmo Watson
- Re: What do I call what I want to do?
- From: Jack Jackson
- Re: What do I call what I want to do?
- From: Elmo Watson
- What do I call what I want to do?
- Prev by Date: Re: .NET 2.0 designtime partial rendering, any ideas?
- Next by Date: Re: .NET 2.0 designtime partial rendering, any ideas?
- Previous by thread: Re: What do I call what I want to do?
- Next by thread: Re: What do I call what I want to do?
- Index(es):
Relevant Pages
|