473,406 Members | 2,312 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,406 software developers and data experts.

guidelines

ok here I go.
after reading (long and long hours of NG reading) finding out that
ActiveX and COM are (dead) dying along with vb.
And that everything is cool with dot net.

I would like to make some user control that acts like activex. like
building some dot net dll that could be called by any other application.

So. I have written a user control. A clock, with a timer and so on. with
some properties (color) too, with a set and get functions.

I have checked the COM interop box in my project option. Built the
program. And then I get a nice dll. But I cannot use it. I mean I can use
this user control in another test VBA, but nothing like activeX.

After reading a little bit more, I find out that there is something to do
with .net registering (I thought dot net library does it by themself!?)
So I use tbl thingy to make a tbl. file and then I register my dll .net
with regasm.

But nothing that I really want happen.

Maybe I have missed something. Or I am going the wrong way I dont know.
Could someone give me some hints (full explanaition would be nice)?
please...
Nov 20 '05 #1
5 1446
Hi Joan,

I have to disappoint you. Creating ActiveX *controls* - that is, components
having user interface - is not supported by Microsoft .NET. You can get over
it in the client application with help of so called "shim control" which is
widely used by Visual Studio .NET developers. It is a small ActiveX written
in C++ that can host any .NET user control within itself upon your request.
Don't worry - you don't have to know C++ to use it. Just download the
control (one I believe is available somewhere on the Microsofy website and
there's also an improved version available from the "Files" section here:
http://groups.yahoo.com/groups/vsnetaddin)

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Joan Delacourt" <de*******@iquebec.no.spam.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
ok here I go.
after reading (long and long hours of NG reading) finding out that
ActiveX and COM are (dead) dying along with vb.
And that everything is cool with dot net.

I would like to make some user control that acts like activex. like
building some dot net dll that could be called by any other application.

So. I have written a user control. A clock, with a timer and so on. with
some properties (color) too, with a set and get functions.

I have checked the COM interop box in my project option. Built the
program. And then I get a nice dll. But I cannot use it. I mean I can use
this user control in another test VBA, but nothing like activeX.

After reading a little bit more, I find out that there is something to do
with .net registering (I thought dot net library does it by themself!?)
So I use tbl thingy to make a tbl. file and then I register my dll .net
with regasm.

But nothing that I really want happen.

Maybe I have missed something. Or I am going the wrong way I dont know.
Could someone give me some hints (full explanaition would be nice)?
please...


Nov 20 '05 #2
Dimitry,

thank you for ur reply which indeed disappoint me a lot.
I wonder why .net made a lot of efforts to make everything cross language
with great interoperability but nothing like activeX.
Well, I think it is strange not to be able to do such component in
vb.net.
Anyway, I will give a try to the C++ activeX ".net host".
Thank you.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com>
wrote in news:#3*************@tk2msftngp13.phx.gbl:
Hi Joan,

I have to disappoint you. Creating ActiveX *controls* - that is,
components having user interface - is not supported by Microsoft .NET.
You can get over it in the client application with help of so called
"shim control" which is widely used by Visual Studio .NET developers.
It is a small ActiveX written in C++ that can host any .NET user
control within itself upon your request. Don't worry - you don't have
to know C++ to use it. Just download the control (one I believe is
available somewhere on the Microsofy website and there's also an
improved version available from the "Files" section here:
http://groups.yahoo.com/groups/vsnetaddin)


Nov 20 '05 #3
Joan,

Just for your information - as far as I know, the ability to build ActiveX
controls was initially there during the beta stage, but then Microsoft has
decided to remove it for some reason.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Joan Delacourt" <de*******@iquebec.no.spam.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
Dimitry,

thank you for ur reply which indeed disappoint me a lot.
I wonder why .net made a lot of efforts to make everything cross language
with great interoperability but nothing like activeX.
Well, I think it is strange not to be able to do such component in
vb.net.
Anyway, I will give a try to the C++ activeX ".net host".
Thank you.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com>
wrote in news:#3*************@tk2msftngp13.phx.gbl:
Hi Joan,

I have to disappoint you. Creating ActiveX *controls* - that is,
components having user interface - is not supported by Microsoft .NET.
You can get over it in the client application with help of so called
"shim control" which is widely used by Visual Studio .NET developers.
It is a small ActiveX written in C++ that can host any .NET user
control within itself upon your request. Don't worry - you don't have
to know C++ to use it. Just download the control (one I believe is
available somewhere on the Microsofy website and there's also an
improved version available from the "Files" section here:
http://groups.yahoo.com/groups/vsnetaddin)


Nov 20 '05 #4
I wanted to try XSShimgen, it works (add my control, build the
windowtool) but it crashes my IDE when I want to test it in the
ActiveX control test container.

So I gave a try to VSUserControlHost but it requires VS.net 7.10.. I
have 7.095

to be continued

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote in message news:<#3*************@tk2msftngp13.phx.gbl>...
Hi Joan,

I have to disappoint you. Creating ActiveX *controls* - that is, components
having user interface - is not supported by Microsoft .NET. You can get over
it in the client application with help of so called "shim control" which is
widely used by Visual Studio .NET developers. It is a small ActiveX written
in C++ that can host any .NET user control within itself upon your request.
Don't worry - you don't have to know C++ to use it. Just download the
control (one I believe is available somewhere on the Microsofy website and
there's also an improved version available from the "Files" section here:
http://groups.yahoo.com/groups/vsnetaddin)

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Joan Delacourt" <de*******@iquebec.no.spam.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
ok here I go.
after reading (long and long hours of NG reading) finding out that
ActiveX and COM are (dead) dying along with vb.
And that everything is cool with dot net.

I would like to make some user control that acts like activex. like
building some dot net dll that could be called by any other application.

So. I have written a user control. A clock, with a timer and so on. with
some properties (color) too, with a set and get functions.

I have checked the COM interop box in my project option. Built the
program. And then I get a nice dll. But I cannot use it. I mean I can use
this user control in another test VBA, but nothing like activeX.

After reading a little bit more, I find out that there is something to do
with .net registering (I thought dot net library does it by themself!?)
So I use tbl thingy to make a tbl. file and then I register my dll .net
with regasm.

But nothing that I really want happen.

Maybe I have missed something. Or I am going the wrong way I dont know.
Could someone give me some hints (full explanaition would be nice)?
please...

Nov 20 '05 #5
Strange enough, as the shim control itself does not depend on the IDE.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Joan Delacourt" <de*******@iquebec.com> wrote in message
news:ca**************************@posting.google.c om...
I wanted to try XSShimgen, it works (add my control, build the
windowtool) but it crashes my IDE when I want to test it in the
ActiveX control test container.

So I gave a try to VSUserControlHost but it requires VS.net 7.10.. I
have 7.095

to be continued

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote

in message news:<#3*************@tk2msftngp13.phx.gbl>...
Hi Joan,

I have to disappoint you. Creating ActiveX *controls* - that is, components having user interface - is not supported by Microsoft .NET. You can get over it in the client application with help of so called "shim control" which is widely used by Visual Studio .NET developers. It is a small ActiveX written in C++ that can host any .NET user control within itself upon your request. Don't worry - you don't have to know C++ to use it. Just download the
control (one I believe is available somewhere on the Microsofy website and there's also an improved version available from the "Files" section here: http://groups.yahoo.com/groups/vsnetaddin)

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Joan Delacourt" <de*******@iquebec.no.spam.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
ok here I go.
after reading (long and long hours of NG reading) finding out that
ActiveX and COM are (dead) dying along with vb.
And that everything is cool with dot net.

I would like to make some user control that acts like activex. like
building some dot net dll that could be called by any other application.
So. I have written a user control. A clock, with a timer and so on. with some properties (color) too, with a set and get functions.

I have checked the COM interop box in my project option. Built the
program. And then I get a nice dll. But I cannot use it. I mean I can use this user control in another test VBA, but nothing like activeX.

After reading a little bit more, I find out that there is something to do with .net registering (I thought dot net library does it by themself!?) So I use tbl thingy to make a tbl. file and then I register my dll ..net with regasm.

But nothing that I really want happen.

Maybe I have missed something. Or I am going the wrong way I dont know. Could someone give me some hints (full explanaition would be nice)?
please...


Nov 20 '05 #6

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

Similar topics

22
by: beliavsky | last post by:
Is there a more recent set of Python style guidelines than PEP 8, "Style Guide for Python Code", by van Rossum and Warsaw, at http://www.python.org/peps/pep-0008.html , which is dated July 5, 2001?
6
by: stevehayter | last post by:
Wonder if anyone can help me solve this problem! I have a 3x3 table which i'm using to create a table with a rounded edge using images in the top left, top right, bottom left, and bottom right...
61
by: Pete Vidler | last post by:
Hi Folks, I'm wondering if there is a compilation of C++ guidelines out there anywhere. Here are some of the ones I've picked up so far (as examples): - Functions should fit on one screen,...
16
by: E. Robert Tisdale | last post by:
C++ Programming Style Guidelines http://geosoft.no/development/cppstyle.html I think that these guidelines are almost *all* wrong. For example: 11. Private class variables should have...
39
by: jamilur_rahman | last post by:
What is the BIG difference between checking the "if(expression)" in A and B ? I'm used to with style A, "if(0==a)", but my peer reviewer likes style B, how can I defend myself to stay with style A...
3
by: John Salerno | last post by:
Does Microsoft have any naming guidelines for variables? I've been reading their guidelines for just about every other type (methods, parameters, properties, etc.) but nothing about variables. Are...
5
by: Laurent Bugnion [MVP] | last post by:
Hi group, In agreement with the head of our R&D department, I published my firm's JavaScript Coding Guidelines. I work for Siemens Building Technologies. We developed these guidelines for a web...
8
by: mrashidsaleem | last post by:
Can anyone guide me what is wrong with the naming conventions suggested below? I know that this is not recommended by many (including Microsoft) but I need to know what exactly is the rationale...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
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.