|
Yes. You said it yourself. A 3rd page needs to be used to show the "Please Wait...".
Pass the values from your data collection page to the Wait page, then have the Wait page redirect to the processing page, again, passing the same values to it.
Don't ask me for an example. I don't have one.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Hi, i just had the same "problem" (it isn't a prob at all).
I'm a bit confuse you just said "page" and that makes me think it could be a web page, i use this way for winforms apps but it should work anyway. You need to handle the task in a different Thread so you can do what ever you want while your system is doing the task.
To do this just add a reference to "using System.Threading" and add the following function:
public void StartMyTask()
{
Thread MyThread = new Thread(new ThreadStart(taskmethod));
MyThread.IsBackground = true;
MyThread.ApartmentState = ApartmentState.STA;
ssThread.Start();
}
Note that taskmethod must not include (). When you call StartMyTask() it will start taskmethod() in a new thread so your system do not wait until the task is performed to show the message or whatever. I assume in this example that the task is all in one method.
Hope it work.
Heinz
-- modified at 17:59 Monday 26th September, 2005
|
|
|
|
|
Sorry, there's a type error.
ssThread.Start() should be myThread.Start();
The forum does not allow me to modify the message so i posted a new reply.
|
|
|
|
|
You might want to go back and look at what the OP was asking. Your method doesn't address the problem at all and won't work in a Web Forms environment anyway.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Oh, sorry, i guess i didn't understood the problem, i thought it was a win form app and wanted to keep a window or message open while the task was being executed.
Nevermind, please don't try my code.;P
|
|
|
|
|
Hi,
I am new C#. I want to develop a C# windows app. But instead of using forms I want the output to be rendered in IE. ie when the user clicks the .exe file to execute the app, it should open in IE. The reason I want to do this is, I want to create the UI similar to a webpage(but not) to give the user a feel of ease to work with.
Thanks.
|
|
|
|
|
why not create asp.net application instead of windows forms app
MCAD
|
|
|
|
|
It is not an webapp. It is normal windows application.
The project should be executable ie .exe
|
|
|
|
|
So do you want IE to host your application or you want yor application to run IE?
I think you mean the first so suggest to use web app
can you give more details?
MCAD
|
|
|
|
|
My Project is absolutely a windows app. But instead of using dialogs or windows for UI , I want to run the app with IE and give the user a webapp feel.
|
|
|
|
|
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.
|
|
|
|