471,852 Members | 955 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

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 5293
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.