473,765 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Embed Windows.Forms.P rogressBar in WebForm

I've been trying to figure out how i can embed a Windows.Forms.P rogressBar
in my webform (aspx) file.
I have tried putting a Windows.Forms.P rogressBar 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.P rogressBar 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\MyH ostingWebForm.a spx.cs(29): Argument '1': cannot convert
from 'System.Windows .Forms.Progress Bar' 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 5424
The control collection of ASP.NET is a collection of System.Web.UI.C ontrol
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********@hot mail.com> wrote in message
news:u$******** ********@TK2MSF TNGP09.phx.gbl. ..
I've been trying to figure out how i can embed a Windows.Forms.P rogressBar
in my webform (aspx) file.
I have tried putting a Windows.Forms.P rogressBar 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.P rogressBar 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\MyH ostingWebForm.a spx.cs(29): Argument '1': cannot convert
from 'System.Windows .Forms.Progress Bar' 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3496
by: Christian Wilcox | last post by:
Does anyone know of any existing Python implementations of an XForms viewer? Christian
2
4984
by: Jan | last post by:
Hi, What I want is to add a text file to my project which will be included/embedded in my exe file. So not a link to a text file in a folder but a text file physical in the exe. Is this possible..? How can I access the content of the file..? Jan
2
1379
by: Brendan Miller | last post by:
What can a windows form do that a web form cannot?
2
1883
by: Matt Theule | last post by:
I need to be able to allow users to drag files to a list box on a web page. To this end, I created a Windows Control and hosted it in a WebForm. When the file is dropped onto the listbox, the path of the file is truncated down to 8.3 format (with the ~1 at the end). When the Windows control is hosted in a windows form (for testing purposes) the full path is displayed. Is there some setting that will allow the full path to be displayed...
3
2048
by: FaciCAD | last post by:
I would like have same control as Windows XP, Ex. All arrows in dropdown is blue, scrollbar to, progressbar ... I can ??
2
1576
by: Pink | last post by:
Hi I am a Newbie to .Net can anyone let me know the diffrence between Windows.Forms and Winforms they are different version of totally different and are some methods different too Thanks
3
7669
by: johnThemod | last post by:
Hi, Im new to these groups, Im wondering is it possible to develop a windows application(c#) and embed it into a browser. So if a user goes to this page, the application woudl be downloaded. kinda the way you can embed applications in applets for Java,
13
3164
by: Lloyd Dupont | last post by:
In the good old days I believe people were using the arcane technology which came to be known as COM+ to embed other application's document in their own document. Like a Word with document a Windows Media Player or Excel or Visio document inside, double click on it and *bang* you coud start edit it using Excel/WMP/Visio toolbar. Apparently even OpenOffice could do that.
14
1916
by: jim | last post by:
OK...Don't ask why - it'll just make ya mad. It makes me mad just thinking about it. I swear....if I didn't need this job, I'd tell 'em where to embed their webbrowser control. But, since I do need it, here are my questions... Can I embed an IE activex control in a webpage? I basically would like to be able to embed the same component used to create IE-based browsers into a webpage. Since IE is already on Windows PCs already, would...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5276
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.