473,668 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting properties and methods to an activex control

How to set properties to an activex control ?
So that i can use it as
Activex.propert yname = variable;
or
variable = Activex.propert yname;

Nov 19 '05 #1
2 953
Activex.propert yname = variable

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

"Nayak" <ud********@yah oo.com> wrote in message
news:eH******** ******@TK2MSFTN GP10.phx.gbl...
How to set properties to an activex control ?
So that i can use it as
Activex.propert yname = variable;
or
variable = Activex.propert yname;

Nov 19 '05 #2
The activex control has to expose the property first. Then, you need to get
the correct reference to it on your form.

Use frmName.getElem entsByTagName(' activexcontroln ame');
--
Staff Consultant II - Enterprise Web Services - Cardinal Solutions Group

Future Business Model - National City Mortgage
"Nayak" wrote:
How to set properties to an activex control ?
So that i can use it as
Activex.propert yname = variable;
or
variable = Activex.propert yname;

Nov 19 '05 #3

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

Similar topics

0
1130
by: Nathan Baulch | last post by:
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>
2
1657
by: Eric | last post by:
Hello, I'm using an ActiveX component in my .NET application bij referencing the DLL. Visual Studio will create a wrapper class. So far so good. The problem is that i've not all properties avialable from the ActiveX objects that i CAN access by using the same objects from script. Are these dynamic added properties, and is there a way to access them? Thanks in advance!
5
2193
by: Jason Butera | last post by:
I know that I can read/write custom properties of an object by using the following: Setting: document.all.customProp = "this"; Getting: document.all.customProp; Is there a way I can run code when this custom property is set. Or perhaps there is a way to create a custom method?
3
1607
by: Sam Sungshik Kong | last post by:
Hello! While using panel control, I wondered a thing. Panel class is subclass of Control class. Control class has KeyPress event and Focus() method, etc... Then Panel class must have them. I guess it *has* then behind even if they are not meaningful. However, the code complete tool doesn't show them when I type panel1.(code complete list). Actually I can type panel1.Focus() without any compilation error.
1
1782
by: Ben Taylor | last post by:
Hi, I am experiencing a very strange problem with VC++.NET 2002 and I'm hoping somebody can tell me what I'm doing wrong or whether it's a bug. I created an ActiveX control and added some properties, and added some controls to the propertiy page and linked the properties to them, at this point they were working fine - the on changed event handlers were firing, the properties were updating, the control's OnDraw was being called and it...
3
2679
by: Michiel | last post by:
Hello, I have an ActiveX control which I can call fine from HTML pages, using the object tag like <OBJECT ID="UserControl1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:85A5119D-0000-0000-0000-5467CB71943E" CODEBASE = http://mywebsite/MyActiveX.ocx#Version=1,1,0,0 VIEWASTEXT></OBJECT> , and then simply adding them to the object's id with a . like UserControl1.MyFunction()
11
3483
by: Alexander Walker | last post by:
Hello I would like to write a method that allows me to pass a reference to an instance of a class, the name of a property of that class and a value to set that property to, the method would then set the property of the instance to the value here is an example of what the method might look like public void SetProperty(object instance, string property, object value) {
1
1459
by: miskomisko | last post by:
..net v2.0, VS 2005, VB6 Hi, I try to import my vb6 application to vb .net. The application uses my special activeX component which i want to import. When i import ocx file. Component is imported but not with all its properties. The property: Public Property Get Value(ByVal iRow As Long, ByVal iCol As Long) As
0
1363
by: miarfej | last post by:
Hi to all.. i am just new here, hoping to find some suggestions. I am writing a code in VC++. It is about creating an activeX control using MFC. This control exposes the properties and methods of another (hidden, we may say) activeX control using IDispatch implementations (GetIDsOfNames, and Invoke). I have no problem with these things. My problem is that, I need also to expose the events of the hidden activeX control. That is, my custom...
0
8459
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
8889
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
8790
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...
0
8650
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6206
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
5677
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2781
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 we have to send another system
2
2017
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.