473,503 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting non-standard properties on a dynamic ActiveX control at runtime...

I have an XML file that my application reads at runtime:

<form>
<control clsid="B5ECA9DC-879F-40BC-9298-3E399E099C0B">
<name>btnGO</name>
<top>10</top>
<left>10</left>
<myint>273</myint>
<mystring>Hello world</mystring>
<mydate>01/01/2001</mydate>
</control>
<control clsid="D2059891-6123-48B7-ADFF-0E127F38B5B0">
...
</control>
</form>

These serialised forms can contain any registered control on the system.
I want to be able to construct a standard dotnet form with the ActiveX
controls on it.
I have a very simple implementation of AxHost as follows:

public class MyAxHost : System.Windows.Forms.AxHost {
public MyAxHost(string CLSID) : base(CLSID) {}
}

The name, top and left properties are easy, as AxHost inherits them from
Control.
However, I have no idea how to access my custom properties myint, mystring
and mydate.
I'm thinking that I need to add a method to MyAxHost:

public void SetProperty(string Property,object Value) {}

but I have no idea how to implement it.

Any advice welcome.
Nathan
Jul 21 '05 #1
0 1117

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

Similar topics

18
2139
by: fleemo17 | last post by:
My organization is developing a set of "standards" for websites built inhouse. The first question that comes to mind is what would be a good standard default size for <p> text? 12 point? Which...
0
1567
by: Rhino | last post by:
I am working with SQL Functions in DB2 for Windows/Linux/UNIX (V8.2.1) and am having a problem setting input parameters for SQL Functions to null in the Development Center. My simple function,...
0
443
by: phil campaigne | last post by:
On Mon, 1 Mar 2004, Phil Campaigne wrote: >> Hello, >> I originally installed postgresql as root user and now I am setting up a >> development environment with cvs and a java ide and tomcat. I...
6
2970
by: Troels Arvin | last post by:
Hello, In the init-script contained in the RPMs downloadable from the PostgreSQL site (I checked the one for Fedora), an explicit locale is set before running initdb. - And the explicit locale...
2
1407
by: Ven | last post by:
If an Object is holding a valid reference to an Object, should I set it to Nothing before I set it to a another Object of the same type? ex: Dim objNode Set objNode=Node1 ' Say node1 is some...
6
4256
by: John H Clark | last post by:
I am designing a site that requires AnonymousID. I set my web.config to allow this using <anonymousIdentification enable="true".../as recommended in the documentation. To verify the settings I...
41
2824
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
8
4448
by: Sid | last post by:
I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to...
0
7072
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...
1
6979
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...
0
7449
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...
1
4998
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
4666
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
3160
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
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
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 ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.