469,322 Members | 1,418 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,322 developers. It's quick & easy.

How to Embed Windows.Forms.ProgressBar in WebForm

I've been trying to figure out how i can embed a Windows.Forms.ProgressBar
in my webform (aspx) file.
I have tried putting a Windows.Forms.ProgressBar as public on a regular
winform designer form (form called ProgressForm) and the built the dll.
Then I reference this new assembly from within my asp.net applicaiton and
tried to access Windows.Forms.ProgressBar from within the ProgressForm but
apparently it doesn't work.
Because it won't let me add the control to my aspx control collection
because:

C:MyProject\MyHostingWebForm.aspx.cs(29): Argument '1': cannot convert
from 'System.Windows.Forms.ProgressBar' to 'System.Web.UI.Control'

The error message above makes sense but then i'm really not sure how else to
embed this control.

Please Help!
Thanks!
Nov 17 '05 #1
1 5192
The control collection of ASP.NET is a collection of System.Web.UI.Control
objects, which your progress bar is not. If you want to do embedded
WinForms, use an HTML object tag. Sample here:

http://www.devhood.com/tutorials/tut...utorial_id=187
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Mehr H" <wo********@hotmail.com> wrote in message
news:u$****************@TK2MSFTNGP09.phx.gbl...
I've been trying to figure out how i can embed a Windows.Forms.ProgressBar
in my webform (aspx) file.
I have tried putting a Windows.Forms.ProgressBar as public on a regular
winform designer form (form called ProgressForm) and the built the dll.
Then I reference this new assembly from within my asp.net applicaiton and
tried to access Windows.Forms.ProgressBar from within the ProgressForm but
apparently it doesn't work.
Because it won't let me add the control to my aspx control collection
because:

C:MyProject\MyHostingWebForm.aspx.cs(29): Argument '1': cannot convert
from 'System.Windows.Forms.ProgressBar' to 'System.Web.UI.Control'

The error message above makes sense but then i'm really not sure how else to embed this control.

Please Help!
Thanks!

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Christian Wilcox | last post: by
2 posts views Thread by Jan | last post: by
2 posts views Thread by Brendan Miller | last post: by
2 posts views Thread by Matt Theule | last post: by
3 posts views Thread by FaciCAD | last post: by
2 posts views Thread by Pink | last post: by
3 posts views Thread by johnThemod | last post: by
13 posts views Thread by Lloyd Dupont | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.