After some more searching, I found the solution.
1. Indeed, BackgroundWorker is my friend. It keeps the UI responsive.
2. The missing piece was the BeginOutputReadLine event.
Added to my 2nd block of code is this sub:
Private Sub runBCMaker_OutputReceived(ByVal sendingProcess As...
Hi. I've been searching around the web and here for several days and haven't found a solution to my problem. I'm a veteran ASP.NET developer but I'm new to WinForms and multithreading. I'm using VS 2010 and VB.NET 4.0.
I have a console application that takes minutes to hours to run. It...
Aah! That makes a lot of sense!
John, I took your Post #7 and applied it to my example and it worked fantastic! That's exactly what I was aiming for! I've applied it to my main project and it worked there, too, though I am struggling with a weird bug that is probably related to the...
Thanks Herman. I wasn't aware of BackgroundWorker. I just played with it for a bit, and it's not apparent to me that it does what I want: run 300 tasks asynchronously and report the results as they come in. The sub that handles MyBgWorker.DoWork seems to do everything in one go...
This is my first excursion into multithreading.
Winforms VB.NET 4.0. I want to launch about 300 threads that calculate a result, and I want these 300 results displayed in the main form, results shown as they come in.
I initially wrote this, which makes sense to me:
Imports System.Threading...
I'm converting an app from .NET 2 to .NET 4. The old app worked fine but the new one doesn't want to log in any user.
I'm using Forms authentication for an ASP.NET application. I'm using the SQL Membershop provider in combination with an LDAP server.
On my login page I have...
I just stumbled upon the answer. The ListView mentioned above was my lead. When I tried referencing ListView after adding System.Web.Extensions, that still wasn't enough for the compiler, but VS10 recommended I add System.Web 2.0 library as a reference (weird, why not 3.5?). When I did that...
Hey all. I've made a nice set of functions for my web applications. I've decided to make a class library out of it instead of copying the code to each project. What I found, however, is that the class library doesn't know what CustomValidator is. My first instinct was to write Imports...
BEAUTIFUL! Thank you!
The first thing I did here was try searching the forums for <%# but the search engine here apparently filters out special characters. :( I tried Google Code Search for <%# but obviously that brought up the wrong results. Thanks again John!
Hi. I seem to recall being able to put arbitrary code in the ASPX, something like this:
<asp:Label id="lbl" runat="server" Text='<%# 2 + 2 %>' />
Which would render "4" between span tags. That's a trivial example, but I would really like to automatically display a session variable...
Hey Kulrom.
First off, yes, I know this. I initially thought it strange that labels weren't updated like textboxes, but only form elements are sent back to the browser (including Viewstate).
Second off, my mistake. I wrote that on the fly in the forum. My code doesn't generate that syntax...
Hi all. I have a very strange question, I'm not sure how to search on it (I have been searching the net for the past several hours).
I have an ASP.NET label that I set the Text property to "<INPUT type=""hidden"" id=""pnlX"">50</INPUT>"
Now, I also have some Javascript that gets this data...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.