PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms WinForms Control in a web page

Reply

WinForms Control in a web page

 
Thread Tools Rate Thread
Old 03-11-2003, 09:46 PM   #1
Robert
Guest
 
Posts: n/a
Default WinForms Control in a web page


I'm trying to use a WinForms control in a web page and am
having some difficulty. Perhaps someone here will know
what I'm doing incorrectly...

1. I created a WinForms control and tested it in a WinForm
and it works as expected.
2. I added the dll as a reference on my web form.
3. I embedded an object tag like:
<object id="objPromoDesc"
classid="http://localhost/WebApplication1/bin/MyControl.dll
#MyNamespace.MyClass" width="528" height="72"
VIEWASTEXT></object>

4. I set the virtual directory (and bin subdir) with
execution permissions on "scripts".

No errors occur, but the control doesn't render properly.
Any ideas or steps I missed?

Thanks in advance!
  Reply With Quote
Old 04-11-2003, 12:28 AM   #2
Mark Boulter
Guest
 
Posts: n/a
Default Re: WinForms Control in a web page

Check out:
http://msdn.microsoft.com/msdnmag/i...rl/default.aspx - it
may well help
mark

"Robert" <anonymous@discussions.microsoft.com> wrote in message
news:080501c3a253$ea905a60$a101280a@phx.gbl...
> I'm trying to use a WinForms control in a web page and am
> having some difficulty. Perhaps someone here will know
> what I'm doing incorrectly...
>
> 1. I created a WinForms control and tested it in a WinForm
> and it works as expected.
> 2. I added the dll as a reference on my web form.
> 3. I embedded an object tag like:
> <object id="objPromoDesc"
> classid="http://localhost/WebApplication1/bin/MyControl.dll
> #MyNamespace.MyClass" width="528" height="72"
> VIEWASTEXT></object>
>
> 4. I set the virtual directory (and bin subdir) with
> execution permissions on "scripts".
>
> No errors occur, but the control doesn't render properly.
> Any ideas or steps I missed?
>
> Thanks in advance!



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off