Forms :: Thread And Updating Forms - Set Options And Start The Encode By Spawning A New FFMpeg Process

Sep 21, 2010

I'm working on a website where we'll be getting a lot of videos to be uploaded. To keep things simple and secure, I'm just writing VB.net windows app to suck all the files in a directory in, allow you to set some options, and start the encode by spawning a new FFMpeg process.

[Code]...

View 5 Replies


ADVERTISEMENT

C# - Start New Process, Without Being A Child Of The Spawning Process

Dec 8, 2011

How would I go about starting a new process without it being the child of the calling process.

Example:

Main Program (Caller.exe)
process.start("file.exe")

View 3 Replies

Forms :: Thread Cannot Access Another Thread's Member Directly And UI Updating

Oct 18, 2011

I have a small problem that I am sure is due mostly to my inexperience with threading. I have used simple entirely self-contained threads before, but not to a great extent. I understand the basic laws that surround them, such as how a thread cannot access another thread's member directly, and must use delegates.

[Code]...

View 1 Replies

Forms :: New Thread Versus BackgroundWorker Updating UI

Aug 24, 2010

i have lurked on these forums before and finally signed up..i have a situation that, after days of searching the web, i have not been able to come up with a solution for.i have to fire off a function that takes a large amount of time (writes to database, creates files, etc etc)this function is a non-shared function of a class. if need be i could make it Shared.[code]the code works great, but what i need to be able to do is update a form with a progress bar as the job is processing.all of the examples i have seen that do this are being called from within a Windows Form and they access the form directly - i cant do that in this case. my form needs to be 1 form for 1 job being executed - can process multiple jobs at one time and thus i need multiple forms.i have tried making the form part of my delegate class but since it runs in the same thread the effect is it "freezes" until the job is complete.i have just started looking into using a background worker but again, all examples i have seen use the component as part of a form - that wont work for me.

View 3 Replies

Forms :: Updating UI Label From Another Class In Another Thread?

Nov 2, 2011

I've been programming in vb.NET for a whileAnd to be honest, its turning out to be a real pain.Here is the

Form1.vb: Imports System.Threading
Public Class Form1
Dim trd As Thread[code].....

So, I have a form (form1) with a label on, this label simply reports the status of the thread.The thread begins the Class1.Main() sub, and I have a delegate setup to change the text propoerty of the label.Now,I know the label is created on the UI thread,so I assumed the delegate would work. However,it seems that it updates the .text property, but doesnt redraw the control when .Update() is called .What am I doing wrong?I have found lots of examples of delegates, but all run from within the same class. I want to use threads too, not a backgroundworker! This code is a "simplified" version of a project I am on, which is encountering the same problems

View 17 Replies

Does Changing Forms Start A New Thread

Feb 17, 2012

I have a basic form which call functions on a numbers of different forms up to (30), Do these functions run in parrallel, or are they run sequentually.Each function as present calls for disk access, if the threads are running in series, this will present a considrable relay, this is not acceptable.

View 10 Replies

Forms :: Start Or Activate Other Process

Mar 5, 2011

I am having a bit similar task, which I am not able to get thru. I'll explain..I have two apps A and B, B is kind of a reminder application which runs in the background..but that is not important here, thing is when App B is open, it has a button which takes user to App A, I am doing that using Process.Start("A.exe") all good so far. Problem is I need to make sure that if any other instance of App A is running then I need to jump to that instance. I am able to check for the instance running using Process.GetProcesses() but I am not able to set focus to that running instance.

View 1 Replies

Forms :: Process.Start Inside Application?

Jul 26, 2010

Process.Start("<pathname>") works fine. But I need to open the file inside my application alone. Is that possible? If so How??

View 1 Replies

Forms :: Use Process.start Based On Settings File?

May 14, 2010

My first post! im quite new to programming but loving every minute of it.Basically i want to open another exe file from vb.net 2010. i can do it normally using

system.Diagnostics.Process.Start _ ("c:winamp.exe") if winamp for example is installed on another pc in another location i want to run it from my program but i want there to be sort of like a settings.txt file where you can edit the path to winamp and my program should first read the path set in the settings file and then open accordingly. how do i go about doing this?

btw it would be great if you could point me in the right direction for making a windows form where one can edit the settings file within my program without editing the settings file in notepad

View 4 Replies

Forms :: String Encode And Decode?

Sep 25, 2009

I am trying to write a function which has the ability to decode a string from utf8. I am getting the string as a response from a webserver.I am using the following line to do the decoding:

DecodeReply += System.Text.Encoding.ASCII.GetString(System.Text.Encoding.UTF8.GetBytes(temparray(i).ToString))

[code].....

View 4 Replies

VS 2008 / Process.Start - Hide All My Forms And Only Show One That Says "please Wait"?

Apr 24, 2009

I am using Process.Start in my application, which is working great.My only problem is, the program it "starts", is an installer, which takes about 5 minutes to install. I woud really like to hide all my forms and only show one that says "please wait", but i cant seem to get it to stay there till the process has finished.

View 2 Replies

Incompatible Signatures When Spawning Thread With ThreadPool?

May 5, 2009

The error is:

Method 'Private Sub ProcessToolWork()'
does not have a signature compatible
with delegate 'Delegate Sub

[code].....

View 2 Replies

Multi-threading Forms - Open A Separate Form As A Separate UI Thread From The Start Up Form

Oct 27, 2011

I have a few forms that have a lot of really intensive updating along with a great deal of user interface (text boxes, button clicking etc) Is it possible to open a separate form as a separate UI thread from the start up form that called it to "show" or open or whatever the new method might be?

View 6 Replies

.net - Application.Exit Raises `FormClosed` For All Open Forms From Calling Thread, Generating Invalid Thread Accesses?

Oct 31, 2010

My routine to check for updates is run as a separate process. Exiting the application is required to update, so a dialog asks the user, when an update is found, if they want to exit now. f they do, the code (from the update thread) calls Application.Exit().However, if the FormClosed event of any form that needs to be closed needs to access its controls, an invalid cross-thread operation is detected (which sounds pretty logical).

View 1 Replies

Forms :: Run Processes Synchronously From A Thread Or Backgroundworker Thread?

Sep 4, 2009

How do run processes synchronously from a thread or backgroundworker thread? Is it even possible?We have program that allows the user to download several files from a remote server, compress them, and then email the files.It has several long running processes that must run in order. We want these to run on a separate thread so as not to make the form unresponsive. Does a way exist to do this? We attempted a rather clumsy way of approaching this problem by using background worker threads. When each thread is completed and returned back to RunWorkerCompleted, we start another background worker thread and repeat the the next process. It works somewhat but seems to take a lot of resources to run.

View 1 Replies

Calling Forms From Another Thread

Mar 3, 2012

I cannot grasp this issue. In the below code. I am trying to start a separate thread to display a progress bar while a function is executed in the main thread. The function can take a while, and during that time the program appears to just lock up. So, the progress bar does not really need to show the progress it just needs to cycle till the main thread function is done executing so that people know that the program is still running.

[Code]...

View 11 Replies

Forms :: Showdialog Within Another Thread

Jul 16, 2010

where I am starting another thread which opens a form. Succinctly, it is an animated "Please wait.. processing" type of form. The issue is that I want to make this form a child form of the parent (main thread or main GUI) when I open it.The issue is that I prefer to use frmProcessing.ShowDialog(frmMain) instead of just frmProcessing.Show, because of form disappearing issues. It, of course, gives me an error of illegal cross thread operation. My question is, how do I perform frmProcessing.ShowDialog(frmMain) to show from within another thread, that the newly opened form is actually a child of the main thread. Is there a better way for me to make a small processing form telling the user to be patient while background processes are working? [code]

View 2 Replies

Showing Forms From Another Thread?

Jun 20, 2009

my scenario is this: I have two forms and a module. Let's call one of the forms MainForm and the other SecondForm. My module is running on a seperate thread to MainForm. A sub routine is triggered in the module, and I want it to display SecondForm.

I understand that I cannot do this directly because SecondForm needs to be called from the UI thread, which is shared by MainForm. How would I go about doing this? I'm guessing that I would have to use a combination of invocation and calls to MainForm to activate SecondForm.

View 1 Replies

.net - Windows Forms In VB Updating Two Tables?

Apr 18, 2011

I am creating a form in VB to enter customer sales invoices and need to update two tables i.e. InvoiceHeader and InoviceDetails. The Invoice details can have more than one line for one Invoice header. I was wondering if there is any thing like Access subforms or how can I update both tables through an SQL statement.

View 1 Replies

Forms :: Binding Control To SQL And Updating

Sep 15, 2010

I have controls on a form, bound to an SQL data source. The information populates the control well. When I change the text in a bound textbox, I want it to be reflected in the SQL database. When I change the text in the control, the DataSet is updated. Now I need to make the DataSet update the SQL table.

[Code]...

View 1 Replies

Forms :: Exception While Updating The Array?

Nov 14, 2009

I am getting Error while updating the sting array Settings() which is Declared as Global. I am getting Array IndexOutofBound exception in runtime, what is the error in the code?

[Code]...

View 1 Replies

Updating Dataset On Bound Forms?

Apr 11, 2011

I have added a SQL Server datasource through the wizard. I created my forms which were bound to the dataset. Is it possible to change the datasource and dataset names while updating the dataset the binding controls of the form?

For instance, Server 1 has DB1 and Server 2 has DB2 (DB1 & DB2 store the same information/tables). Is it possible to keep the forms and only update the binding information if I want the forms to use DB2?

View 3 Replies

Two Forms Are Starting As Start Up?

Jan 26, 2010

I have two forms starting up at the same time when I debug the program. I only need just one startup Form to load. What can I do to stop this?

View 6 Replies

Forms :: Resuming A Thread After AbortReset?

Nov 4, 2011

I am trying to find a way to resume a thread after catching the AbortThreadException and calling AbortReset.

My thread is running a loop to control two motors used in a raster scan. Once the button is pressed to begin the scan, I want to be able to click a stop scan button and have the following happen:

1. AbortThreadException is thrown and caught- a window comes up asking if you really want to abort the scan. Click yes for abort, no for suspend, or cancel to continue scanning.

2. Given users answer the program responds accordingly- If cancel, then the scan should continue right where it left off and not restart.

My problem occurs in my understanding of the thread events. I am not sure how to tell a thread to wait for a button event nor do i know how to tell a thread to continue where it left off. I also noticed that the 'suspend' and 'resume' methods have been deemed obsolete and i am not sure of the alternative way of doing those actions.

The following is the code used to catch the exception and execute the task.

[Code]....

View 2 Replies

Forms :: Update Richtextbox On A Different Thread?

Nov 2, 2011

Basic function - enter 5-10 urls. Download all web pages using multi threads and then process it. Then in the end, the text from all threads should end up in a richtextbox. It can't be done using any of my googly searches so i thought about asking this :

how would you update text in a richtextbox from a different thread?

I am being able to download and process web pages. But can't add it to richtextbox.

View 2 Replies

Forms :: How Program's Form Could Start From Down To Up

Mar 28, 2010

How the program's form could start from down to up when the program just runs?

View 6 Replies

Forms :: Showing Both A Start And End Date

Sep 28, 2010

I have the following

[Code]...

and as you can see, I am showing users the next available date open to them is determined with the value dteReturnValue.ToShortDateString .. but what I'd like to do is show the user both the start date and the end date, which will always be +7 days from the field in my database.

View 5 Replies

Open Two Forms At Once When Start The Program?

May 14, 2010

how to open two forms at once when you start the program but one has to be on the left of the main form and the same size

View 1 Replies

Start A Module And Link It To Other Forms?

Jun 24, 2011

i have 2 forms and i want buttons on form1 to tell a label on form2 different numbers. ( if button 1 is hit then label.text = 15, if button 2 then .text = 20 ect)

and i also want a variable to make it so that every time i click the number goes down by one.

ive been reading on google and in vb6 you would use a module but ive read mixed things on google that i could use a class or a module. So i started testing with a module saying

Public a As Integer
For a = 1 To 30
a = a - 1

[Code]....

how to start a module and link it to other forms?

View 1 Replies

Start Windows Forms App With A Sub Main?

Mar 11, 2010

I am trying to make a windows forms application that starts using Sub Main instead of the Form1_Load event.I have tried putting this in Public Class Form1

[Code]...

View 2 Replies







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