473,480 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Doesnt import all ActiveX component properties

..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
Variant
....

and

i tried to replace variant with object but the same result... Simple
properties are imported, f.e.
public porperty get Hi()

when i look with object browser i see two records. The name of the
file and the "Ax"+name of the file, what is normal. In record with
name of the file are this missing properties shown, but in Ax.. one
arent. Why? How can I make it to import it? I can change the code of
ActiveX componet. But f.e. property Value is Get-Let property and is
used in many formulars so i think replacing property with sub or
function is not good solution, because vb6 doesnt support methods
overloading . Do you have any suggestions how to solve it? thank for
any reply

Jun 7 '07 #1
1 1451
miskomisko wrote:
.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
Variant
...

and

i tried to replace variant with object but the same result... Simple
properties are imported, f.e.
public porperty get Hi()

when i look with object browser i see two records. The name of the
file and the "Ax"+name of the file, what is normal. In record with
name of the file are this missing properties shown, but in Ax.. one
arent. Why? How can I make it to import it? I can change the code of
ActiveX componet. But f.e. property Value is Get-Let property and is
used in many formulars so i think replacing property with sub or
function is not good solution, because vb6 doesnt support methods
overloading . Do you have any suggestions how to solve it? thank for
any reply
Hi miskomisko,

VB.NET does not support anymore VARIANT and CURRENCY data types.

One possible solution to overcome the situation is to replace it with
the Object (speaking for the VARIANTs) equivalent in .NET.

If you can change the code of the ActiveX, than I suggest you to
revision the variant properties with ones with strict definitions (e.g.
- Integer, Long, etc.). Of course - that would impact on your formulas
calculations, so this would be harder, but the produced code will be
more clear and precise. Using variants was not good practice even in the
VB6 times. So in this way you can achieve two goals: code review of your
project and better future integeration with the VB.NET.

In a addition, check out this article, it shows some of the differences
between VB6 and VB.NET: http://www.thescarms.com/vbasic/vb6vsvbnet.aspx
which I suppose would be helpfull in your work.

HTH,
Petar Atanasov
http://a-wake.net
Jun 12 '07 #2

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

Similar topics

0
2912
by: Helena Cai | last post by:
Hi, Due to the nature of our system, we need to dynamically import certificate files into windows certificates store and access the certificate store from ASP pages, these ASP pages call a VB...
2
13364
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
2
1645
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...
1
1783
by: sam | last post by:
Guys, I was trying to use an activeX control that communicate with Scales in a web application, i could add the control in the design mode and it even works as expected. But, i need to access it...
1
1741
by: Anand Kale | last post by:
How to have ActiveX control called from Web Form in ASP.Net ? ActiveX control is written using VC++/MFC/ATL-COM. Also kindly answer following issues, 1. Also how to take care of issues about...
4
6769
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
8024
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
875
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...
7
3052
by: Rico | last post by:
Hello, I have a VB6 ActiveX DLL project that I use to connect to an SQL Server database. The front end that uses this DLL is written in Access XP / 2002. When I modify the ActiveX code, compile...
0
6908
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...
0
7044
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
7084
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...
0
6929
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
4779
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
4481
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
2995
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
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...

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.