473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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 1112

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

Similar topics

18
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
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
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,...

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.