|
There's no good way to do that. You can't put webcontrols directly on a winform app.
You *could* write you main form with an embedded IE controller, implement your app as a webpage, and have the installer create a local webserver that your app starts to do display the pages. In addition to being extremely nonelegant, most users don't have a licence for IIS to run an asp.net webpage. You might be able to do it by building the webpart with mono and installing apache as your local webserver, but since I've never used mono I'm not sure what if any limitations you'd be facing.
Your other option would be to write your own set of custom controls that look like web components. This would be a massive udnertaking, and as a selfdeclared newbie, you're nowhere near capable of doing so.
|
|
|
|
|
Ann66 wrote:
But instead of using forms I want the output to be rendered in IE
You really don't want to do this. This will VASTLY (can't stress this enough) complicate your interface code because .NET app's don't run natively inside a COM or OLE container.
What you're talking about doing is write your own ActiveX .EXE, which Visual Studio and the .NET Framework cannot target building. This was done pretty easily in VB6 though.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ya I guessed so...that it is not easily doable.
Anyway thanks guys for all ur help.
|
|
|
|
|
|
Running an app in the web browser could be a pain in the ass. But if you want to give a web browser looking, i have to tell you that i've seen many applications like this, for example SharpDevelop (the main window, it has links like web browser, has form controls and is a winform app).
I've seen apps that can be installed in your pc and be run from a webpage instead double clicking the exe. That's another posibility but i don't know if you have to run a web server for doing this cause there's client server interoperability.
|
|
|
|
|
Hello,
How can I add 100 columns to CrystalReport. It seems I can't change the paper size.
Thank you.
|
|
|
|
|
Hello,
I get this exception while running the code below:
Exception:
An unhandled exception of type 'CrystalDecisions.CrystalReports.Engine.InvalidArgumentException' occurred in crystaldecisions.crystalreports.engine.dll
Additional information: Error in File C:\tmp1\Report1.rpt:
Invalid table number.
Code:
<br />
ReportDocument rpt = new ReportDocument ();<br />
this.dataset.WriteXml(@"C:\dataset.xml", XmlWriteMode.WriteSchema);<br />
rpt.Load(@"C:\tmp1\Report1.rpt");<br />
rpt.SetDataSource(this.dataset.Tables["CashFlow"]);<br />
crystalReportViewer1.ReportSource = rpt;<br />
Any ideas why am I getting the error?
Thank you
-- modified at 11:04 Monday 26th September, 2005
I am getting the exception when I am Setting the DataSource for my report rpt object.
|
|
|
|
|
Hi does anyone know how it is possible to control a datagrids scrolling from a vertical scrollbar? I am trying to see if I can use this to scroll the datagrid, but am having no luck so far. Is there anyway to pass the scroll event from the vScrollbar to the datagrid?
|
|
|
|
|
What exactly are you trying to accomplish? If you set the CurrentRow of a datagrid it should automatically scroll to that row.
I tried controlling the horizontial scroll bar on a DataGrid once, but I didn't have much luck. I could get it to move but the DataGrid itself wouldn't update.
|
|
|
|
|
Hi, I actually solved what I needed to using CurrentRowIndex. Do you know of a way to turn the datagrid scrollbars off?
|
|
|
|
|
I don't. Perhaps you could search the control collection of the datagrid for the scroll bar and then remove it from the collection? However, I suspect that the second you add another record or resize the datagrid it would get recreated.
|
|
|
|
|
I have placed two treeviews within a MAIN panel. Before doing so, I also put each treeview within its OWN panel as well. I then put a splitter between each TREEVIEW panel within the MAIN panel. I did this so I could dock buttons onto each treeview and have them maintain their DOCKED position even when the splitter moves. Now, the problem. The Treeview and its OWN panel that is docked at the bottom of the MAIN panel works great. The top one does not. When the splitter resizes the Treeview Panels, the vertical and horizontal scrollbars dont show up on the Top Treeview. Any suggestions? Thanks in advance.
D
|
|
|
|
|
hi
Would you please explain it..... Dont mind ..I could not Undersand your problem...
because I have been working arround tree views a lot.. so i decided to ask you the problem..
Regards
Munawar Hussain
Sr.Software Engineer
Ayfasoft Lahore Pakistan
Cell# +92-42-321-4365657
+92-42-304-4030466
|
|
|
|
|
No problem.
I have three panels. A MAIN panel and two panels with a treeview in each. I have the two TreeView panels INSIDE the MAIN panel. I use a splitter to resize the two treeview panels within the MAIN panel. The two treeviews are stacked on top of one another inside of the MAIN panel. When I resize the form, only the bottom treeview displays scrollbars. The top one does not. Why is this? I have checked all of the setting, and they are the same for both treeviews.
If you need any more information, feel free to ask.
|
|
|
|
|
Are you sure you are seeing all of both treeviews? I ask because if you don't have the z-order of the controls correct and you have one of them set to dock as fill sometimes you can find the control fills the entire screen with the other controls docked on top of it (instead of next to it). It's possible that half of one of your treeviews is being obscured by the other without you realizing it.
|
|
|
|
|
I think you are right. However, how do I fix this problem and still be able to use the splitter to resize each treeview and its corresponding panel? Thanks again.
|
|
|
|
|
I'm writting .Net dll using Hashtables.
When i debug the Dll blank lines and Commented Lines gets debugged.
When i change the Source Code it executes with the previous source code.
(i.e) New Changes are not getting reflected while debugging. It is debugging with the old code.
I tried Clean and Rebuild option but their no effect.
--------------------------------
bharath. k
-- modified at 8:40 Monday 26th September, 2005
|
|
|
|
|
Make sure your exe file matches its pdb file and that they are in the same directory.
Also make sure that your application is not in the GAC. Or else you will use the assembly from the GAC the and the new pdb, which cause the same symptom you descibed.
Good luck,
Ami Bar
|
|
|
|
|
Yeah it is working.
Thanx alot Ami Bar.
|
|
|
|
|
Hi,
I'm wondering if there is any COM object form Microsoft Office Picture manager or MS Picture Viewer that one can use? I want to be able to clik on a picture and open either one of the above mention item the same way it's possible to open Word or Excel.
Thanks for your help
|
|
|
|
|
Hi all.
I'm trying to read a stream to string but seem to be having some trouble.
string _content = "";
System.IO.MemoryStream _stream = new System.IO.MemoryStream();
SoapFormatter _Formatter = new SoapFormatter();
_Formatter.Serialize(_stream, _element); // Serialize object
_stream.Flush();
System.IO.StreamReader sr = new System.IO.StreamReader(_stream);
_content = sr.ReadToEnd();
return _content;
The _stream's buffer isn't empty at all but yet the streamreader returns an empty string.
|
|
|
|
|
That is probably because you are reading from the current position in the stream (the end) to the end of the stream. Reset the position before you read the stream.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi,
I'm having this problem of changing the back color of a multiline textbox I have which is also a read only textbox. Its back color turn grey when I set readonly = true and I just can't find anyway to change it.I'd been searching the Internet for the whole day but just can't find any solution. By the way, I'm doing a pocket pc project.
Thanks for any ideas on this
|
|
|
|
|
As far as I know, it can't be done with the standard textbox. Possibily you could derive your own TextBox control and override OnPaint?
|
|
|
|