How To Open Multiple IE (multithreading)
Jun 22, 2010
what i did was i use a select statement in opening multiple IE just for testing but the main function is what you put number on a textbox then the number the IE's will open for example i put 100 on textbox then when i click a button then 100 IE's will open so if im going to use select statement when opening 100 IE my code will be crazy... heres my sample code..
[Code]...
View 2 Replies
ADVERTISEMENT
Jan 26, 2011
My question is, imagine I have two List(Of T) objects and a subroutine in a multithreaded environment that modifies both of these objects. I don't understand locks very well, so I'm unsure whether I can just do:
SyncLock CType(List1, IList).SyncRoot
List1.Clear()
List2.Clear()
[code]....
View 2 Replies
May 13, 2011
Context: I'm working with a relatively simple winforms application, written in VB.NET on the .NET 3.5 framework in Visual Studio 2010. Issue: The FormLoad event creates two threads when the program is opened. One handles automatic update checking and the other performs a time consuming task syncing files with the internet. These threads are initialized as follows:
[Code]....
View 2 Replies
Jul 17, 2011
I have one Private sub that runs in a loop. I want the sub to run multiple times at once. For example the program runs, you press start; you run the program again and press start, again and again... the same program doing the job at once. now i just want one program do to it alone. But i would like it to be user defined. exp. run program. type in a text box 10. press start. and it works as if 10 of them work open working on the same thing.
[Code]...
View 1 Replies
Apr 17, 2010
How to I run multiple threads in VB.NET? Say I need 2 threads - one that prints 100 numbers in a loop and the second one that asks for the user's name and prints it inside a message box.
View 1 Replies
Jun 6, 2012
How to run multiple funcations simultaneously using multithreading concept?
Actually i am making a software which has backend tool as MS ACCESS. it has 15000+ records in database and i need to display that records as my software loads..but it is much time consunable and sometimes it even goes out of time exception
View 7 Replies
Jun 2, 2011
vb
Public Class download
Public Event AmountDownloadedChanged(ByVal iNewProgress As String, ByVal rowno As Integer)
[Code].....
How I can download Multiple file's using multithreading and
How I will display progress report in Datagridview Column ("Progress")
View 9 Replies
Feb 27, 2012
I was wondering if this code could be better optimized for multithreading. What it does is open a process and loops through the data, there could be any range of files to open (so I would like to have say 2 or 3 processes at once):
[Code]...
View 19 Replies
Apr 4, 2012
i have a form where i wanted to open multiple socket connects to multiple servers. i defined "clientsocket" as a socket array
[Code]...
View 6 Replies
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
May 15, 2012
I have an application that can read certain types of files, and I have it working so that if you do "open with" from windows, it automatically starts the application and opens the selected file.
Unfortnately, I cannot get it to work for more than one file.
System.Environment.GetCommandLineArgs() contrains the following:
System.Environment.GetCommandLineArgs(0) = name and path to the .exe
System.Environment.GetCommandLineArgs(1) = name and path to the first file selected to be opened
System.Environment.GetCommandLineArgs().Length is 2 when the user tries to open 1 file, which makes sense since the first argument is the .exe itself and the 2nd is the path to the file, but it does not increase to 3 if the user tries to open 2 files... meaning that System.Environment.GetCommandLineArgs(2) is never populated Here is some sample code that shows the problem: It will recognize no files or 1 file being opened, but if you try to open multiple it will only show the first.
[Code]...
View 1 Replies
Sep 7, 2011
At my job, there are multiple web based tools we use. I'm trying to make a program that opens them all with one click, all in separate IE windows.
The code below, once executed, will produce 1 IE window. I'm pretty sure I understand why it's doing this, but not sure how to fix it. What I want is 3 IE windows open, at the respective sites.
VS 2008 & IE 8
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
OpenURL("http:www.google.com")
[Code]....
Also, the way my GUI's set up I have buttons for each individual tool, when clicked they open a new tab in the same IE window, as opposed to a new IE window.
View 6 Replies
Oct 6, 2010
Basically, I'm trying to get a program to behave in the following way:First instance of the program opens up on PC1, opens a file for Read/Write access and then acts as the master program, doing a bunch of work on some other files I don't want a whole bunch of users accessing at once.Second instance of the program starts up, tries to open the file for Read/Write access, fails, enters Slave mode, opens the file for Read access, and periodically reads the status of the other files from this file.
That's the plan, anyway. If anyone can suggest a better way to handle the master/slave decision-making.Anyway, as a lead-up to implementation, I've got two instances of Visual Studio open. One is running a project called "GetFile", the other is running a project called "TryGetFile"."GetFile" has a Private myStream As IO.FileStream object and opens the test file using this line:
myStream = IO.File.Open("\[network path] est.txt", IO.FileMode.OpenOrCreate,
IO.FileAccess.ReadWrite, IO.FileShare.ReadWrite)
This works fine and, as far as I can tell, should leave this file accessible for further Read/Write access by any other process, which is fine for this stage of the testing."TryGetFile" also has a Private myStream As IO.FileStream object, but it attempts the following open code:
myStream = IO.File.Open("\[network path] est.txt", IO.FileMode.Open,
IO.FileAccess.Read, IO.FileShare.Read)
This doesn't work at all. I get an IOException, which reports that test.txt is opened by another process and I'm not allowed to play with it.Basically, I don't see what the problem is; I don't think "TryGetFile" is asking for any file access which "GetFile" forbids it from having. As far as I can see, "GetFile" shouldn't be forbidding any kind of access at all...
[code]....
View 3 Replies
Mar 3, 2010
My program opens an excel file with excel.application's .visible=false. If the code is running and I manually open any excel file the excel file being used by code will then open up as well (making the .visible=false useless). Then at the end I use the excel.application's .quit to make sure that instance of excel quits, but it will quit every open instance of excel (even ones not opened by that code).Is there any way around this? to make sure it does not appear when other files are opened, and to make sure it only closes that one instance of the excel application.
View 4 Replies
Apr 24, 2009
I have an application that has multiple forms. The "main" form within this application can be accessed from other forms. However, each time this "main" form is accessed throughout the application, a "new" instance is created, resulting in multiple instances of this form being open.
I would like to have "only" one instance of this form open at one time. If it is currently opened, I would like it to be brought to the forefront, instead of opening a new instance.
View 2 Replies
Jan 24, 2010
I'm using this code to load multiple files using windows context menu, but the problem is that the aplication is open many times as files the user has selected.For example: If I select 14 files, an open them with the application, the aplicacion is opened 14 times and load the form only one. But there is a way to send all arguments once? Because %1 send only one file, or there is for example a %2 that send all file pats in one argument? If there is I'vent found.
This my actual code:
Public Class Program
Public Shared Sub Main()
Dim FurBase As New Core.clsDatabase
[code]....
View 1 Replies
Jul 6, 2009
I am writing an application whose main purpose will be to collect user-entered data on a prescribed time interval (to be used by a dr. during anesthesia to collect patient vitals during surgery). I am attempting to accomplish this by having a form opened from the main window on every tick of a timer. The problem, is that if the user is a bit slow in entering the data on the first window, and the timer ticks again before they submit the first form, when the form is reopened (currently by simply using a show() command), the process of opening the form again simply overwrites the original form rather than creating a second instance.What is the best way to open a second (and possibly 3rd, 4th... nth) instance of the same form?
View 4 Replies
Nov 5, 2010
Is there any way that I can tell if a second version of the same program is opened by the user.
View 5 Replies
Aug 21, 2010
I've been trying to find a way to determine if I need to launch an application or maximize it because it is already running for the current user. The problem I am running in to is since I'm using the For Each command the application though it now knows to open the external .exe wants to open multiple since more than one instance of the application is running without the same SessionID.
VB.NET
Private Sub OrderLaunchOrSwitch()
Dim CurrentSessionID As Integer = Process.GetCurrentProcess.SessionId
Dim hwnd As IntPtr
[code]....
View 3 Replies
Apr 11, 2012
I am new to vb.net. I have much experience using vb 6. What I am wanting to know is how to replace the file system object. Specificaly I am wanting to use textstream arrays. How would I write the following in vb.netFor simplicity reasons I am going with the assumptions that I have a text file that is 1 byte long and is just a repating series of #'s from 0 to 9. I want any record that has a 1 to go to tsout(1), 2 to tsout(2) ect...
dim fso as new filesystemobject, tsIN as textstream, tsOut(10) as textstream
dim lineIN, i
set tsin = fso.opentextfile("C:input.txt",forreading,false)
[code].....
View 1 Replies
Jan 21, 2010
what i did was i use a select statement in opening multiple IE just for testing but the main function is what you put number on a textbox then the number the IE's will open for example i put 100 on textbox then when i click a button then 100 IE's will open so if im going to use select statement when opening 100 IE my code will be crazy...
Private Sub btnGenerate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGenerate.Click
Dim num As Double
Try
[code].....
View 5 Replies
Mar 15, 2009
When I select multiple paths from openFileDialog in my listBox control enter only one path by try. This is probably because that I use OpenFileDialog.FileName. I wish to load all selected files in one time...but in this case Add(OpenFileDialog.FileNames) give me the value stringArray in same listBox. I suppose that maybe exict peace of code through ItemCollection which give me opportunity that I import all file path in one try in listBox control. It was interesting because how I may implementing matrix between openFileDialog and listBox..
View 4 Replies
May 3, 2012
I have a tab-based application that handles multiple documents. It is designed such that the user cannot run multiple instances of application. Furthermore, the user can double-click on a document file, and the application will launch itself and open it.[code]...
View 9 Replies
Aug 2, 2011
I've got an sql datareader that has a bunch of paths in it. I need to open up multiple pop up windows / multiple tabs on the browser.So I tried looping through my datareader and doing a ClientScript.RegisterStartupScript but after the code completes nothing opens up.
[Code]...
View 2 Replies
Sep 12, 2010
i have create software using visual basic 2008 now i am stuck with several matter
i need a code that can open multiple URL in one time... when i click the button.. the URL also i can easily add or deleted it
View 1 Replies
Jun 26, 2011
i want to create system that can search and open 1 excel file from multiple excel file.Since there are too many excel file, i create a database(using excel) which list all the excel file and sorting it by project name in which i want to retrieve the excel file through project name. this is the example database that i had create:
ProjectName ExcelFile
PA201 d:Project.xlsx
i just want to design 1 user interface,type the project name in the textbox then click command button to open the excel file but i don't know the coding.
View 4 Replies
Aug 6, 2011
I need to open a form 6 times, I have the following
[Code]...
But when I click the button 6 times all the 6 forms open, but when I close one and click in the button to open again (since I only have 5 opened) the compiler says that I need to sure that the object isn't in use before using it again.
View 3 Replies
Apr 1, 2012
i am making mp3 player. i didn't wanted to use open buttons so i've associated my app with .mp3 filetype (with If (My.Application.CommandLineArgs.Count > 0) Then...)
The problem is when i want to play next song while the first one is playing it opens my program again so it plays 2 songs at the same time.
I want to do is when im opening new mp3 make it shut down the old one
I guess there is more methods that open in same app but just change the url.
View 7 Replies
Apr 24, 2010
I have a program that works when, a file is opened with it using the right click menu in explorer. But if I select multiple files and then right click and open with my program then it opens multiple instances of my program, instead of just passing the multiple files as arguments to a single instance. The program is written in vb.net but is not a windows form, it is just a module, so I can to tick the Single instance option in the properties in Visual Studio.So how do I open multiple files from explorer context menu in a single instance.
View 2 Replies
Aug 18, 2010
So here is the situation. I have a button on one of my extjs pages. This button opens a child window as a pop-up. This child window has a .method attribute as well as a .ref attribute, and also a .id. I need the functionality to open another window with the SAME template, everytime I click that button.I was thinking set the childwindow .method property to something like 'getWindow', and the .ref to something like 'newWindow' and then create a javascript function on the backend to look something like this:
var myArray = [];
var count = 0;
function getWindow() {
[code].....
View 2 Replies