By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,947 Members | 1,548 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,947 IT Pros & Developers. It's quick & easy.

guidelines

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.