473,692 Members | 3,149 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to turn DLL to control?

Hi,
Is there somewhere the way to turn the any arbitrary DLL into control which
I can put in my ToolBox and use further in my RAD development.
I mean the way to create new control or component from any DLL so it will
expose its properties and events for turning in design time and unsing in my
application likewise we have now with controls from ToolBox.
I think such possibility will add greatly to RAD development in NET
enviroment.
Thanks.
Jan 3 '06 #1
3 1462
No, because the designer works on controls and components and must have the
correct interface that the designer expects. You can definitely inherit all
classes from a Control, but that does not really make sense since most of
the classes that support an application have no UI behavior.

Also, it does not make sense to say "turn any arbitrary dll into..." since
the DLL is only a container for classes and other structures. What you are
really asking is, "is there a way to turn any arbitrary class into a control
....".

"kolja2003" <ko*******@tisc ali.cz> wrote in message
news:uU******** ******@TK2MSFTN GP14.phx.gbl...
Hi,
Is there somewhere the way to turn the any arbitrary DLL into control
which
I can put in my ToolBox and use further in my RAD development.
I mean the way to create new control or component from any DLL so it will
expose its properties and events for turning in design time and unsing in
my
application likewise we have now with controls from ToolBox.
I think such possibility will add greatly to RAD development in NET
enviroment.
Thanks.

Jan 3 '06 #2
Hi,

"kolja2003" <ko*******@tisc ali.cz> wrote in message
news:uU******** ******@TK2MSFTN GP14.phx.gbl...
Hi,
Is there somewhere the way to turn the any arbitrary DLL into control
which
I can put in my ToolBox and use further in my RAD development.
I mean the way to create new control or component from any DLL so it will
expose its properties and events for turning in design time and unsing in
my
application likewise we have now with controls from ToolBox.
I think such possibility will add greatly to RAD development in NET
enviroment.
Thanks.

You can get a class (control) in the toolbox if it expose the correct
interfaces , you cannot add a dll to the toolbox as per se, a DLL may have
several classes that are not intented to be used in a RAD environment.
Take a look at MSDN for further details about how to do such a control

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jan 3 '06 #3
Only Components can be added to the ToolBox (Controls are components also)
if you wan to be able to add a class to a the toolbox the your class should
implement IComponent interface. However for good design time support more
needs to be done. Keep in mind that not all classes make sense to be
designable.

I read in some blog that in Cider, which is code name for the designer in
WPF, IComponent will be removed and as the author said the only requirements
will be the class to inherit from Object :) which means all classes can be
added to the toolbox. I can't confirm this though.
--

Stoitcho Goutsev (100)
"kolja2003" <ko*******@tisc ali.cz> wrote in message
news:uU******** ******@TK2MSFTN GP14.phx.gbl...
Hi,
Is there somewhere the way to turn the any arbitrary DLL into control
which
I can put in my ToolBox and use further in my RAD development.
I mean the way to create new control or component from any DLL so it will
expose its properties and events for turning in design time and unsing in
my
application likewise we have now with controls from ToolBox.
I think such possibility will add greatly to RAD development in NET
enviroment.
Thanks.

Jan 4 '06 #4

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

Similar topics

1
1395
by: kmunderwood | last post by:
I have an xml file that I get "As Is" (at bottom of post) I want to sort and exclude some elements, and turn other child elements red, or its background. I want it to look like this: Tank Level Temperature B05 535.91 22.22
4
4678
by: Robert Strickland | last post by:
I wish to turn off browser caching through some meta tags. Note the following: <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> However, running against my local site, the browser still caches the page and it's contents. What am I missing?
4
1339
by: Bob | last post by:
Is there a way to turn off the form designer's automatic deletion of "handles <control>.<eventname>" when you delete a control? It's extremely annoying to replace one control with another of the same name, run the project, then realize that none of the events are being handled any more. This feature *really* needs to be removed. Bob
1
4770
by: Qwert | last post by:
Hello, when a NumericUpDown control has the focus, the mousewheel increases/decreases its value. How does one prevent this from happening? How does one turn off its mousewheel event? Thanks.
10
23598
by: Zabby | last post by:
hi, i want to turn on/turn off a usb lamp via a vb.net button... i think i would have to turn on/turn off the power for this usb port.... how could i do this? kind regards
0
1065
by: Ron | last post by:
Hi, I need to turn off my menu control when a user is in the process of changing there password. I know this can be done because the Login control automatically prevents the rendering of the control during login. I would like this same no rendering of the menu control when users are changing there passwords. The ChangePassword.aspx page sits inside the master as dose the login control so if the login control can do this so can the...
0
2585
by: kal | last post by:
Hi there I am hunting for way to turn off/disable active scripting especially javascript in my webbrowser control. I don't see any property to turn off script. I found entry in registry under HKU/software/microsoft/... which gets modified when we manually change the setting for active scripting in IE from dword 3 to 0. But that solution is not viable because programatically registry updation is dependent the user rights
1
1583
by: robert112 | last post by:
Hi All, I have a webpage.aspx and a webusercontrol.ascx with both of them having viewstate turned off. Then in my web user control I have got some code reading the request stream: Dim str As IO.Stream Dim strLen As Integer Dim strRead As Integer
4
10342
by: BLUE | last post by:
Psion WorkAbout Pro with Windows CE .NET 4.2 Dealer gave me PowerAPIOn.exe and PowerAPIOff.exe to turn on/off tag reader, but I want to do it programmatically and do the same with WiFi and Bluetooth as I can do from Control Panel ("Network and dialup connections" and "Power"). Googling I've found that I should:
0
8611
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9094
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8970
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8814
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7642
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6468
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4332
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.