Threads And Parallel Processes Cannot Be Used For Manipulating Controls?

Oct 27, 2010

With threads and parallel processes you can process raw data but notcontrolsUielements) because they belong to another thread,

View 1 Replies


ADVERTISEMENT

Create A Child Processes Which Will Execute In Parallel The Piece?

Nov 2, 2010

My aim is to create a child processes which will execute in parallel the piece of VB.NET code say a function. I want to do it specifically using processes and not threads. Please suggest the ways to do this?

View 2 Replies

2 Threads Not Working In Parallel?

Sep 28, 2010

I have 2 threads in my Program. Here is code for both of them

Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click

[Code]...

StartReceiving is working fine but StartWriting is called only once and that msgbox in startWriting is never called, any suggestions on this

View 7 Replies

Running Different Processes In Multiple Threads Without Overlapping

Jan 13, 2012

I have a sub-procedure which I want to run a different process, depending on what is currently running. I thought the easiest way to do this was by using an ArrayList of each of the campaign details & adding an 'Inuse' field to check to see if the Inuse field is set to 0 or 1. The problem that I have is that when running the process it is all happening at once & the integer hasn't been changed before the next thread kicks in so my threads are running the same campaigns. I tried to avoid the problem by adding a Thread.Sleep(100) delay inbetween starting threads but this led to exactly the same problem.

Here's an example of what I am trying to do:
Imports System.Threading
Public Class Form1
Private Campaigns As New ArrayList
Private ProcessRunning As Boolean = False
Friend StopProcess As Boolean = False
[Code] .....

View 2 Replies

Manipulating Controls On Parent Forms From Child

Mar 6, 2012

I'm trying to add a new row to a DataGridView from FORM 2 but I can not succeed, the code I tried is as follows:

[Code]...

Looking like it took time but can not find a solution,

View 1 Replies

Access Controls From Alternate Threads?

Sep 11, 2010

I'm trying to update the UI from a background thread, but the method I'm using at the moment isn't working. From what I've been reading, the method I'm using should work, but it isn't.[code]...

View 8 Replies

Use Form Controls In Background Threads?

Jun 8, 2010

I've just recently figured out threading, and how to use it. I was even able to figure how to make a background thread modify the text property of any form control that has a text property.

I figured if you could specify the name of the control whose Text property you want to modify, it could be done easily, and I was right[code]...

Is there a way that you could do this, but eliminate the need to specify the control type as a parameter and maybe have the application determine what control you're trying to use by it's name?

View 2 Replies

Multiple Controls On Winform Mutliple Threads?

Jul 3, 2010

I've created a news ticker control, which reads from RSS feeds and scrolls the text Horizontally. The plan is to have 3 of these on my Windows form, which will each display their own information.

The control is created as a label, which is populated with the text, and then scrolls right to left using a timer, once the label gets to the end of the text, and disappears of the left side, the rss is re-read, and then the cycle resumes. The problem is that with multiple copies of this controls on my form, once one gets to the end of it's run, all three freeze while the rss is reread, rather than just the control that needs to do it.

Is there a way to run each of these controls independently (threading?)? Or is there a glitch in my code causing this? (below - some elements not included, but it should be fairly obvious what is happening!)

[Code]...

View 7 Replies

Parallel.For Termination - Service That Scans Network Folders Using A Parallel.for Method

Jan 16, 2012

I have a service that scans network folders using a parallel.for method. However recently I am finding if I stop the service then while windows says the service is stopped the process is still running in task manager. However it is at 0 cpu and the memory does not change. If I try and end the task (even a force in command prompt) it just says access denied and i have to reboot the server. What would be the best way to make sure everything terminates? I thought of adding a global Boolean that in the stop procedure it turns true and part of my parallel code will check for that and call s.stop.

View 1 Replies

Multithreading - .NET 4.0 Execute Multiple Threads But Threads Are Completed Before Resuming?

Oct 19, 2011

I just had a new, last-minute idea on to take on a task, so I am running to StackExchange for quick help.

What I want to do is execute a series of methods right in a row, each in their own threads. I want the application to wait until all of these threads are completed, after which the program will resume. It also has to use managed threading (thread pool).

What quick examples could you provide to help me along the way? If it's too complex, what things should I know about so that I can Google it on my own?

View 1 Replies

Queue Threads - Spawn A Series Of 'child' Threads From A Loop

Dec 30, 2009

I have a main thread which is designed to be a batch processor - it spawns a series of 'child' threads from a loop (which can vary in terms of the no of items) - see below

[Code]...

However, each of the 'child' threads could take anywhere from milliseconds to about a minute to process - depending on the complexity of each calculation. There may also be a large number of child threads - e.g 100s. Creating large numbers of child threads is not efficient. I therefore want some way to effectively queue each child thread (and cancel if the process is taking too long to complete). Autoevents seems like one way of doing this, but the only examples I can find seem to assume there are two different processes on seperate threads, not one process being repeated.

View 4 Replies

.net - Manipulating .gif Images?

Apr 26, 2011

How would I turn single images into animated gifs and vice versa? Is there an existing library for such a thing?

View 1 Replies

Manipulating The Picture Box?

Jun 30, 2009

I'm trying to design a game using vb.net window application, my game is sokoban, a logic game where the character pushes boxes to the destination.I have already programme my picture to be move by my direction key, I trying to find out if it is possible for picture box to push picture box like when the character(a picture box) move to the box(a picture box too), the box will move also. and also the logic for creating obstacle for the game, as the picture that i have programme can move beyond the page, I'm trying to lock the obstacle in, so when i move the picture, it will be block by the picture box.

View 6 Replies

Manipulating Pictureboxes Positions?

Dec 18, 2011

i'm creating a game like text twist. that when i press letter a, i need to determine which picturebox contains letter a and display it to different location. that also goes to the proceeding letter a's. for example, i have a jumbled letters "aamba". in my code, it only gets the first letter a and removes it form the screen, it's nowhere to be found. and it won't recognize that i still have other letter a's i'm pretty sure about the location that i set it to be placed.here is my

(it's kind of brute force i think)
ElseIf e.KeyChar = Chr(97) Then
counter1 = 0[code].....

View 7 Replies

Manipulating Audio Files With .net?

Apr 2, 2012

I need to be able to read audio files and manipulate them from within my own program (similar to how Audacity does it). Now, I'm not asking for something with a thousand effects and such, I just need the minimal as far as audio manipulation for .net goes. I really just need to be able to figure out pitches and frequencies being played at what times and the ability to move them all around.

View 1 Replies

Manipulating Data From A Database Within VB?

Apr 30, 2010

I'm creating a program that displays data from a Access database in DataGridView, and I'm able to "call" the database and display it in datagridview normally, but I need to be able to take the data from 3 separate columns and average them together, within VB.

My table basically displays 3 grades for a student, one column for the student's name and the other 3 columns for 3 separate grades, I need to be able to take the 3 grades from the same row and average them together, then display them in a separate column within DataGridView.

Here is my code so far, but this only displays all the records without the average:

Quote:

Public Class Form1
Sub UpdateGrid(ByVal sqlStr As String)
Dim dt As New DataTable()

[Code]....

View 3 Replies

Manipulating Data Sheet Next

Jan 10, 2012

I am using the Print Document to create the impression in vb.net...Anything I set a certain number of records per page however see the other pages just like the first,some help to handle these records correctly in the leaves?

View 4 Replies

Manipulating Excel Files Using VB8

Jul 7, 2011

My script is pulling some information (filename, date, &c) from a server that contains only (nearly) identical excel files generated by a separate application whenever it is used. The goal is to find out who is using the tool and how often.

I need help with two things: extracting info from within the excel file, and appending the results to the SAME excel file each time it's run instead of creating a new file each time.

Here is what I have...

CODE:

View 1 Replies

Manipulating Output From Sql Command Asp.net?

Feb 10, 2011

I am building a quiz application which has 5 categories. I am saving details like name, category and score to DB. Table where all data is saved looks like :

Name Category Score
John Windows 10
Tom Mac 5


On the start page i want to disable/enable categories if user has/has not took quiz yet (ie. if John has already completed Windows quiz but hasn't Mac then enable Mac Quiz, disable Windows and show Windows score).Whats the most elegant way of retrieving these values from database and then passing them to variable or boolean? What if search returns NULL (if quiz was not taken by John) and manipulating output from SQL Database? I am using vb.net 2.0 and SQL server 2005 and its an asp.net application.

View 1 Replies

Manipulating Table Structure?

Mar 3, 2009

I have a string array that contains the following:

(Date Type RequestNum)
3/3 xyz 3
3/3 abc 4

[code].....

View 1 Replies

Manipulating Text In Another Form?

Jun 1, 2010

I'm trying to make a program that can handle menu order in restaurant.

In this program, there are Main form (frmOrder), Starter Form (frmStarter), Entree Form (frmEntree), and Dessert Form (frmDessert). Each category (Starter, Entree, and Dessert) contains 4 menus, and each forms other than main form have label for name, price (label), and quantity (textbox).

Main Form have 4 buttons (3 of them opens respective form of Starters, Entrees, Desserts. Last button calculates total), and it has big label that displays all the ordered menu. By default it has current time and date, so any ordered menus are supposed to be displayed on separate line (with quantity, name, and price with dollar sign).

Below is the code I wrote for frmOrders

[Code]....

I tried to see it works, but lblTape.Text (which is the big label that displays ordered menu) do not change. I did saw lblTape.Text got value it supposed to (item quantity & item name & item price) but it doesn't change when I close form and return to Main form. I'm not sure where I got trouble to end up like this...

View 11 Replies

Manipulating The Registry From A Click Once App?

Mar 16, 2011

I have a couple applications that store data in the registry for persistence.It works great when running in Windows XP, but since upgrading to Windows 7 I've noticed that it fails, basically saying that the permissions are inadequate.

If I disable the UAC it seems to work fine, but I don't want to do that.

Dim regKey As RegistryKey
Try
regKey = Registry.LocalMachine.OpenSubKey("SoftwareTagLookup", True)
If regKey Is Nothing Then

[code].....

View 1 Replies

Manipulating Windows ACL With PowerShell?

Dec 12, 2011

I have a file full of last-names separated by commas and then first-names.

Smith,Bob
Chicken,Ronald
Car,Anastasia

Code:
gc permissions.csv|% {$_.split(",")[0]}

I'd like to grab the first character of the first name and then pre-pend it to the string of the last name. The general idea is to find the user ID that's stored in Active Directory, in my company it's the first letter of the first name and then the last name.

Then I'm trying to add these users as read-only on a specific directory.

View 2 Replies

Sql - Manipulating The Data In Files Itself?

Apr 26, 2010

I have developed an application using VB.NET, Visual Studio 2008 and the SQL Server database. Now I want to ignore the database (it has 1 table as customer (name,password,hour,minute)) as I don't want my client to install SQL Server separately or other overheads.I am planning to do the whole using file handling in VB.NET (manipulating the data in files itself, for example change username, password, etc.). As I am new I don't actually know the proper way and of course need assistance.

View 4 Replies

Manipulating Cell Values In Datagridview

Jun 2, 2011

I have a items in my database named as

product number | product name | dosage | description | price | remaining box(es)
0023 amoxicillin 50mg none 50 50

i am having problem in my buy button. how can i manipulate the value in the remaining box(es). for example, i select the item named amoxicillin, and i entered 5 on my textbox. when i press the buy button the value in remaining box(es) will be 45.

View 1 Replies

.net - Manipulating Textbox Variables In Calculations?

Jan 2, 2012

I have some code where I am trying to use variables in a tabpage. The first tabpage only has one text box for user entry (miles.text) and a button to do a calculation: traveltime = mileage/speed. The value from miles.text is stored into a variable called mileage while the speed used is stored in a variable called speed (me.speedtextbox.text).

Ordinarily, doing val(variable.text) works like a charm and it's not doing it in this case. When the user enters 100 for the mileage, it should be divided by 65 (the number in the database) and, therefore, the answer should be 1.53 hours. In my case, I'm getting "infinity" and whenever I do anything else with the variable, I get "when casting from a number, the value must be a number less than infinity." But it is! It's only 65 and I double-checked that the dataset said that too, which it does. Not sure why I am getting this error.

[Code]...

View 3 Replies

Forms :: Manipulating Elements From A Webpage?

Nov 20, 2009

i am using a webbrowser control on a windows form to display streaming video from cameras at different locations.i can get the image to display on the webrowser but my problem is that there are other links and texts that are displayed on the webpage.

View 2 Replies

Manipulating / Resizing / Scaling An Image

May 24, 2010

Imagine I have a rectangle say 400px x 300px. All of this is very easy using Sytem.Drawing. DrawImage. But then I want to leave the left hand side as 300px but change the right hand side to 250 px. I can draw the box using 4 DrawLines but I don't know how to squash the image into the new shape. I want the right hand side of the shape to be 250, the left size 300 and the top and bottom 400px.I can't use DrawImage as it expects the left and right sizes to be the same. Is there a way to manipulate the image into the new shape?I've looked at other questions, but they only apply where the left and right hand side is equal.Any thoughts on how to squash an image into a shape which did not have parallel sides?

View 3 Replies

Manipulating Access Database Via DataGridView ?

May 1, 2012

I've set up a datasource that binds each table in my access database to the appropriate datagridview... how would I go about submitting changes in the datagridview to the database itself?

ALSO: I would like to have buttons on the form that submit SQL statements to the database and update it. For example, something simple like...when I click the button, it takes the values in the text boxes and forms an SQL statement to create a new record in the appropriate table.... How would I go about submitting SQL via a button?

View 2 Replies

Manipulating Bitmap Object Pixels

Feb 13, 2012

i mostly use C and assembly, but i thought i would give VB.NET a shot. i used to use VB6 all the time, so wanted to see how different this is. in VB2010, i'm trying to modify the pixels of a Bitmap object and then make it show up in a PictureBox on the form. i get no errors, but this code does not show the new bitmap after it runs.."disp" is the name of the PictureBox on the form.[code]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved