Is It Guaranteed That Task A Started Before TaskB Will Be Completed Before Task B
Nov 24, 2010
is it guaranted that a task A started before TaskB will be completed before task B assuming the task do the same level of operatons?or in other words is there a chance that a task B will finish before tast A in the assumption that the task calls the same procedure?
View 4 Replies
ADVERTISEMENT
Nov 6, 2010
How would i know when a thread is completed running it's task? I mean in background worker it has a completed event, but can i make something similar to that?
View 7 Replies
Apr 28, 2010
It is a funny problem and I am wondering if anyone else has encountered the same problem using vs 2010 express on Vista Business. I can't tell if the App is running because I do not want to risk corrupting the sql 2008 express database.
View 6 Replies
May 13, 2011
I am having fun working with System.Threading.Tasks. Many of the code samples I see, however, look something like so:
Dim lcTask = Task.Factory.StartNew(Sub() DoSomeWork())
Dim lcTaskLong = Task.Factory.StartNew(Sub() DoSomeWork(), TaskCreationOptions.LongRunning)
Task.WaitAll(lcTask, lcTaskLong)
That's the extent of the sample.Tasks implement IDisposable, so obviously I'm supposed to dispose of them, but what if I just want to "Fire and Forget"?If I don't dispose, will I leak threads/handles/memory/karma?Am I using tasks "wrong"? (Should just use a delegate and leave tasks alone?)
Can I dispose in a "ContinueWith()"? (That seems like playing Russian Roulette.)[URL]..
View 1 Replies
May 26, 2011
My application displays a Splash Screen. In the Main form load event , we show another form in which user has to be select something. On the basis of that selection , the main form is loaded.
The scenario in which the main form is not shown in the task bar is :
1. Application runs , Splash screen is displayed.
2. a new window is shown to user to select something. this window comes over the splash screen.
3. Clicks ok on that window.The window is closed . Only splash screen is showing.
4.Now click on the space outside the Splash screen , the splash screen goes in backgound.
5. The main form is loaded. It comes for a moment in task bar but does not stay there. when i do alt+tab , it is there .
View 1 Replies
Apr 20, 2009
I have a MDI WinForms application that can perform several tasks. Each task is running as a backgroundWorker.What is the good approach to control the running threads:check whether the specific thread is running stop specific thread ?For example it shouldn't be possible to run the same task simultaneously.May be I need a separate class where I can store isTaskRunning variable?
View 1 Replies
Aug 3, 2009
How can you do this? I want to have my program run every once in a while but I don't want to make it a service.
View 5 Replies
Apr 29, 2010
I was wondering how to set a task in my program, For example if the user selects to take a screenshot on a chosen date and time the program would take that screenshot at the specified date and time. I have a DateTimePicker for my users to select a specific date and time to run the task. Since the date and time includes the date i don't think i can use a timer. And FX Cop said that timer intervals shouldn't be longer then a minute.
View 4 Replies
Dec 21, 2011
I have a program and for now I am using timer for schedule a task but does not work as I want. I want for example run a task with a MonthCalendar.
View 3 Replies
Jul 6, 2011
I am writing a small app in VB and I would like to know how I would set it up so that when a user pressed a button, a sechduled task is ran. Keep in mind that this task is already created, I just need it to run.
View 2 Replies
Aug 24, 2011
I came across this code which should be able to compare my PC time with the time stored in theTime; however, I can't get it to work.
dim theTime as datetime
theTime = CDate(txtTime.Text)
if theTime.hour = now.hour and theTime.minute = now.minute then
[code]....
View 1 Replies
Oct 21, 2009
i'm building a custom control to draw graphics. In my control i have a picturebox and one propertygrid, what i need it's to hide all the public property's of the picture box (browsable(false)), but i don't see how to do it...
Other question, it's possible to add one task menu to my control? Kind of the the task menu of the datagridview where we can set the datasource...
View 2 Replies
Mar 1, 2011
TaskScheduler on Windows xp, does anyone know a API used to select a certain task to Run? or do I have to go through that darn COM ITASK interface, I think that might have a method?
View 6 Replies
Dec 22, 2010
I have a vb application. I assigned an icon to the app. It shows up with the file and when i create a short cut. However when it is running the default box icon appears in the task bar.
My class Inherits System.Windows.Forms.Form
What do I need to do to make the icon appear in the task bar?
View 2 Replies
May 25, 2012
I have to sync information between a users table in SQL and a user group in active directory. For example, if a user is entered into SQL table A then they need to be entered into group A and if a user is removed from SQL table A, then remove them from group A.The application is written in ASP.NET (VB)
I see two solutions:
1) A scheduled task that runs every night syncing the two (written in VB.NET).
2) Use inpersonation so that Active Directory can be updated by the ASP.NET application. The Web.Config file will have to be encrypted in this solution.
I have read articles online that say it is bad practice to update AD in ASP.NET. This would suggest that option 1 is the better solution. Which is the better solution?
View 1 Replies
Dec 29, 2011
I am developing a web application in asp.net vb. My current situation is,I have a main site say [URL] and another site for generating reports depending on certain user ids say [URL].If I click a button on [URL] I have to switch on the generate report page on [URL] and return to[URL]. [URL] should generate report and set a flag in database of [URL].Currently I am redirecting to the page in xyz.com and add the long running task to queue as follows and redirect back to [URL].
If ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf LongTimeTask), New Object) Then
Response.Redirect(returnURL)
End If
But the problem is its not dependable. Means some times the queue is executing correctly but some times not. There are no errors in long time task. Just the queue is not executing.
View 1 Replies
Oct 12, 2010
Is it possible to create scheduled task with VB.NET. That is I'm trying to launch/trigger my application at specific time.
View 13 Replies
Jun 7, 2012
I am currently creating a task manager. But there is a problem : After killing the processes, it still remains in my list box (list of processes).I don't want to use a timer to clear the list and add the list of processes again because this will cause the list to blink.[code]
View 7 Replies
Nov 15, 2010
what is the difference between a task and a backgroundworker? when it is better to use one and when the other?
View 1 Replies
Apr 21, 2012
Is there a way I can place my form above the task bar?
Something like this: But, people have different sized task bars..
Is there something like: my.computer.screen.taskbar ?
My current code is: Me.Top = My.Computer.Screen.Bounds.Height - 116
Me.Left = My.Computer.Screen.Bounds.Width - 365
View 7 Replies
Oct 19, 2011
Need to know what processes are runnuning n other Pc in my Network.
View 2 Replies
Oct 27, 2011
how to get application User Name from task manager (in Processes Tab) ?
View 3 Replies
May 27, 2009
i have use VB.Net 2005 for creating a application for Open new windows explorer by code and close this windows explorer when I close my application. I Open windows Explorer by this code.
[Code]...
View 7 Replies
Mar 16, 2009
I have tray to find out how I can insert Textbox into Taskbar then I can write in the textbox what I want to search on the internet.I have search online but did not find any info I use visual Studio 2008 Express.
View 5 Replies
Jan 31, 2011
a wpf application starts a task to do some work asynchounsly. If i need to stop it how can I do that?
View 4 Replies
Jun 22, 2010
How do I make my app have a description in the Processes tab of the Task Manager? Changing the assembly description doesn't do it apparently. Right now the description is just it's name.
View 1 Replies
Apr 30, 2012
I'm trying to wait for a Task result in .NET 4, much like you can by using the await keyword in .NET 4.5. I just can't figure out how to do it though...My code (to prove that I'm atleast trying):
Private Function GetXDocumentFromWebLocationAsync(ByVal request As WebRequest) As XDocument
Dim queryTask As Task(Of WebResponse)
queryTask = task(Of WebResponse).Factory.FromAsync(AddressOf request.BeginGetResponse, AddressOf request.EndGetResponse, Nothing, Nothing)
[code]....
As you would expect, the GetResponse calls are executed on a different thread, but the function has to wait for the result before it can return. Unfortunately this blocks my main thread until the task has completed and I don't have the slightest clue on how to make it wait without blocking. I don't want to use the Async CTP either because that's just running away from the problem.
View 1 Replies
Dec 7, 2010
I'm using Windows 7 Aero DesktopI've seen in many applications like Google Chrome, Microsoft IE that when a download is in progress, the windows taskbar shows the progress of it's download something like in green color.
View 1 Replies
Mar 11, 2009
What's the easiest way to run a periodic task in the background in VB?
For example: Update a label every second with the current time, while still allowing the form to be available.
View 1 Replies
Mar 12, 2011
I have an app that relies on a database. Basically, users are checking in and checking out items and the database keeps track of all that.My boss wants a notification system to email us when a item is overdue. I already have most of this figured out.I was able to create a service and have it read registry values that the app sets and then it reads the check outdate from the database. If it's overdue, an email is sent out.
But, I've only done testing for 10 seconds at a time. I'm currently using a System.Threading.Timer to run every 10 seconds. That was only a test, it won't actually be that way.Instead, I want the task to run once every day. I was thinking to just have it run every hour, but if it runs every hour, then we'll be constantly bombarded by emails when an item is overdue. And sending it every "x" hours brings it's own issues and isn't ideal.Normally, I'd run a task via the Windows Task Scheduler, but the app has to read the database. I guess I could create a separate app and launch it via the task scheduler, have it complete the tasks and then close when done.
View 2 Replies