473,378 Members | 1,415 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,378 software developers and data experts.

Creating ActiveX controls to be used by VB 6.0 programs

Hello!

Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET
2003 to create ActiveX controls which may be consumed by VB 6.0 programs,
i.e. dealt with on forms in the usual way?

If yes, may you provide a hint/link for getting started?
Best regards,

Henrik Dahl
Jan 19 '07 #1
4 2480
Hi Kenrik,

According to following KB, VB6 is not a supported ActiveX Control container
that could host .NET controls:

#ActiveX control containers that support .NET controls
http://support.microsoft.com/kb/311334
With the exception of Microsoft Internet Explorer, .NET controls are not
supported in applications designed to host ActiveX controls.
Using Windows Forms controls in any ActiveX control container was supported
in beta versions of the .NET framework. Unfortunately, there is so much
difference in the implementation of the varous ActiveX control containers
that we eventually decided that it would be impossible to guarantee that
Windows Forms control would work in all ActiveX control containers.
Therefore, we decided that:

Microsoft .NET 1.0 Windows Forms controls are supported in Windows Forms
and Internet Explorer 5.01 and later versions. .NET 1.1 Windows Forms
controls are supported in Windows Forms, Microsoft Foundation Classes (MFC)
7.x, and Internet Explorer 5.01 and later versions. Other applications and
development tools that are capable of hosting ActiveX controls, including
the ActiveX Test Containers from versions of Visual Studio that are earlier
than Visual Studio .NET 2003, are not supported hosts for .NET Windows
Forms controls.
Hope this helps.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 22 '07 #2
Hi Kenrik,

Have you seen my last reply? Would you post a reply here to let me know the
status of this post? Thank!

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 26 '07 #3
Hello Walter,

Yes, and I've also received your e-mail. Thank you very much. It's probably
fair to say that it does not sound particularly promissing. To me it's
rather odd that VB 6.0 is not supported as a container, particularly as
Microsoft in several places writes that it recognizes the significant
investments done in VB 6.0 code.
Best regards,

Henrik Dahl

"Walter Wang [MSFT]" <wa****@online.microsoft.comskrev i en meddelelse
news:dF**************@TK2MSFTNGHUB02.phx.gbl...
Hi Kenrik,

Have you seen my last reply? Would you post a reply here to let me know
the
status of this post? Thank!

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Jan 28 '07 #4
Hi Henrik,

As a VB programmer before, I fully understand your concern. Since VB6 will
no longer have new service packs, it's a hard dicision that we have to
officially drop support for it as a ActiveX container of .NET components;
otherwise, there will be many compatibility issues rising. I hope you could
understand product team's dicision.

At last, thank you for your reply and letting us know your opinion.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 29 '07 #5

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

Similar topics

19
by: Steve | last post by:
Can anyone point me to a primer for creating OCX controls in VB .net? In particular, I want to access a web service in a VB6 application (not an easy thing to do). So, if I can write an ActiveX...
12
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
5
by: jen_designs | last post by:
How do I create custom controls for an embeded video. I need stop, play, pause, etc. Any thoughts?
2
by: gkelly | last post by:
What is the best soltions for creating a graphical object in c# for use in a C++ app? - I heard some say you can't create an ActiveX control in dotnet and I have heard others say you can using...
6
by: smeagol | last post by:
Hi, is possible to create an OCX with .NET? I need to use a control (user control) in Visual Fox Pro, but the old fox doesn't accept usercontrols. Any help are welcome
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
4
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...
19
by: Tony | last post by:
I'm working on project that plays movies using Windows Media Player and I'm controlling everything with JavaScript. Per the client I only need to support IE 6 or greater which happens to make...
6
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.