Open Multiple IE Windows At Once?
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
ADVERTISEMENT
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
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
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
Jul 18, 2010
I'm creating a kind of 'playlist manager' application where the user can create his own music playlist and then play it from my application. However, I don't want to give my application any playback features itself, as there are already so many media players around. Instead, I just want to open the files in the current playlist in the media player of the user's choice.
I have a list of MP3 files (their filenames), how do I now open these files simultaneously in, for example, Windows Media Player? I can get it to play one song, using this command (and Process.Start)
[Code]...
Surely this must be possible? You can open multiple files in windows itself simply by selecting them and opening them at the same time. I'm pretty sure the filenames of the selected files will then be in the arguments of wmplayer so that it can open them, but I just don't know in what format.
View 20 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
Aug 25, 2009
I have use VS2005, I have open windows explorer from code. when i click on search button it open New windows, and in this I click on All files and folders in Look in : combo by default C: and D: drives are set.
[Code]...
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
Jan 25, 2012
How do I open a Windows 7 Library like Documents, Pictures, Music, Videos and all other custom libraries from my app? I tried opening explorer.exe LibrariesDocuments but it doesn't work.
View 6 Replies
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
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
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 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
Apr 3, 2012
I am currently making a game with multiple levels when you complete one level the form hides and shows the form for the next level. But the keydown event doesnt work on the second level. How can I make it work?
View 1 Replies
Jun 9, 2010
I am suppose to recode a notepad assignment that i have done so that it is able to support multiple concurrent open files, that is MDI files i my note pad i had use a textbox instead of richtextbox can any one tell me if i have to use back the textbox in my recoding or not.
View 1 Replies
Mar 15, 2012
i am using visual basic 2010 and i want to open and save multiple richtextboxes text into one
file.
for ex
richtextbox1.text="Deepak"
richtextbox2.text="My Name"
but i want to save these informations in one file.
View 1 Replies
Apr 23, 2009
At the present moment I have four list boxes that save into one text file each seperated by a number telling me how many items are in each. The code is as follows[code]...
View 2 Replies
Nov 25, 2009
Im trying to use a global mouse hook to check and see if the mouse location is in the title bar of any open form. I have the hook, so how would I get the rectangle of the NC (Non-Client) area of every open form in windows?
View 2 Replies