Create ActiveX control with .net 4.0
-
I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.
-
I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.
awu25 wrote:
I have also tried to create windows form control for web but again it doesn't work.
Of course it doesn't work why would you expect it to. ActiveX has been depreciated for several years, its time to update.
I know the language. I've read a book. - _Madmatt
-
I have an ActiveX control for web created in .net 3.5. When upgrading the framework to 4.0 it stops working. I have tried to create a hello world activeX control with 4.0 and it wouldn't work either. Is it not possible to create ActiveX controls with .net framework 4.0? I have also tried to create windows form control for web but again it doesn't work.
awu25 wrote:
ActiveX control for web created in .net 3.5
No you don't. None of the managed code compilers target building an ActiveX control. You can build something that exposes interfaces through COM, but it's not an "ActiveX control".
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
awu25 wrote:
I have also tried to create windows form control for web but again it doesn't work.
Of course it doesn't work why would you expect it to. ActiveX has been depreciated for several years, its time to update.
I know the language. I've read a book. - _Madmatt
-
I have also tried to use Windows Form control but still doesn't work. If both of them are obsolete what should I use to get client printer information through browser in an intranet environment?
Windows controls are not obsolete. You can't use Windows controls in a Web environment :rolleyes:
I know the language. I've read a book. - _Madmatt
-
I have also tried to use Windows Form control but still doesn't work. If both of them are obsolete what should I use to get client printer information through browser in an intranet environment?
They aren't really obsolete - they've been deprecated, but you can still write ActiveX controls in C++. Can you say "Ouch"...
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Windows controls are not obsolete. You can't use Windows controls in a Web environment :rolleyes:
I know the language. I've read a book. - _Madmatt
-
I meant windows form control and it actually does work with web environment. I can get it to work with .net framework 3.5 or earlier, but not .net framework 4, not even a simple hello world control. What are my choices? I am willing to try anything.
You shouldn't actually run a .NET windows control in a web page - this would place a requirement on the end user having the correct version of .NET installed.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.