guidelines

  • Thread starter Thread starter Joan Delacourt
  • Start date Start date
J

Joan Delacourt

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...
 
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)
 
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.
 
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.
 
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 said:
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 said:
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...
 
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 said:
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]" <[email protected]> wrote
in message news: said:
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 said:
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...
 
Back
Top