Hosting will not work for you without a lot of work. Part of the reason is
that your control is manipulating desktop objects. IE's sandbox architecture
does not allow this. So, one approach I can think of is to take the existing
assemblies you have and port the code to a visual basic 6 project where you
can construct an ActiveX control out of the existing code. The output of the
ActiveX control is an object with a CLSID. Take the CLSID and embed it in a
webforms page so it runs as a COM control. That part is easy, just use an
object tag with the correct ID. For instance,
<object id="myObj" CLSID="asdf23432"/>
The difficult part is porting the code to vb6. From there, IE will call the
component and it will pop the activeX permissions control object requesting
permissions to execute code on the desktop. makes sense?
--
Regards,
Alvin Bruney - ASP.NET MVP
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @
www.lulu.com/owc, Amazon.com etc
"Magnus Gran-Jansen" <MagnusGranJansen@discussions.microsoft.com> wrote in
message news:FDFB6AB1-0890-4F69-9724-82915D89E0E8@microsoft.com...
[quoted text, click to view] > Here is some information on it:
>
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c101c.aspx >
http://www.15seconds.com/issue/030610.htm >
> I am currently having some problems getting just something basic of this
> to
> work, but it seems like it is similar to Java applets.
>
> "Peter van der Goes" wrote:
>
>>
>> "Magnus Gran-Jansen" <MagnusGranJansen@discussions.microsoft.com> wrote
>> in
>> message news:4F3111C7-3358-47E8-908C-C9A3783812E0@microsoft.com...
>> > Hi,
>> >
>> > First, thankyou for your answer!
>> >
>> > I just found something interesting called "Hosting Windows Forms
>> > controls
>> > in
>> > Internet Explorer", where I create a Windows Control Library. Have you
>> > heard
>> > about that? Do you know if it could be used for this?
>> >
>> >
>> No, I haven't. Hopefully somebody else will jump in with more info. Do
>> you
>> have a link?
>>
>> --
>> Peter [MVP Visual Developer]
>> Jack of all trades, master of none.
>>
>>
>>