Multiple Shell And Wait Simultaneously?
Feb 18, 2010
I am creating a GUI that monitors the entered application and if the application crashes the GUI starts the application back up. Problem is to run this application (WoW Private Server) I need 3 running applications. Is there a way to shell and wait 3 applications all at once. OR if i was to create a separate console application who's only job was to start the three applications at once how would I pass the application variable?
Here is my program thus far: [URL]
View 8 Replies
ADVERTISEMENT
Mar 10, 2012
i have a program that runs a cmd command. my problem is i want the program to wait until the cmd processing ends then in closes the cmd UI.. [code]
View 12 Replies
May 5, 2010
I used different backgroundworkers to instantiate some 'heavy' forms thinking that it will reduce the time to instantiate them if I did them at once but it looks like I am wrong since it is still taking about 43 seconds to load all of them. Am I missing something or do you have a tip on how I can speed up their instantiation?
View 15 Replies
Jun 18, 2011
Not wanting to hijack 45minutes thread, I thought I might spawn a thread of my own based on his question.
PlausiblyDamp was kind enough to provide some generic code, which I have modified and attached.
I have made a few alterations mostly around removing random objects, as the game in question (Space Invaders) has a set amount of aliens and set starting positions.
As a start I have limited the UpdatedPostion to horizontal movement as the aliens only go side to side unless they hit an edge.[code]...
View 15 Replies
Feb 17, 2011
We are looking to design a security application that does the following on laptops:If the ethernet adapter is used (cable plugged in) disable/block all other network connections (wireless WIFI, mobile broadband (PPP), virtual VPN adapters etc)When ethernet adapter is not being used again, all connections allowed.We have looked in the WMI a lot but there are no good ways of doing this. Only disabling the network connection is not secure enough because most mobile broadband applications try to re-establish the connection. This should be an application that works on all laptop vendors without any user interaction (such as choosing interfaces etc..).
View 3 Replies
Feb 7, 2012
I'd like to allow the user to select up to an entire column of cells and type and/or paste a single value that would then change the value of all the selected cells in the DataGridView to the value that was typed or pasted. I understand this is probably two separate answers, but perhaps if there is a way to set the contents of the clipboard with the value typed, I was thinking it may work well to identify both things I want to do.
View 3 Replies
Dec 14, 2009
I need to play multiple files simultaneously at the moment i am trying to use mciSendString() API it plays the files listed in a listbox. But it is only playing the first one i assume it would play the next one after the first is finished... cbf waiting to see.
Note this was an attempt in C#:
private void PlayButton_Click(object sender, EventArgs e)
{
if (SongsListBox.Items.Count > 0)
{
[Code]....
View 3 Replies
Feb 6, 2010
I have been using the My.Computer.Audio.Play method for sounds in my program for a very long time, but now I have reached a point where the program needs to be able to play more than one sound at a time. What is the best (and preferably simplest) way to do this?
View 8 Replies
Dec 13, 2010
I want to play multiple sounds simultaneously from My.Resources in Visual Basic 2010. I have tried:My.Computer.Audio.Play(My.Resources.SoundName, AudioPlayMode.Background)
I have also tried using multiple Windows Media Player controls, but that also didn't work.The first sound is cut off when the next sound plays.When searching around the internet I found people suggesting using 'DirectSound', but there are only tutorials for DirectSound in VB 6.0.
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
Nov 6, 2009
I'm writing a program which gets the time and date from forums which only show "x hours ago" on the main thread list.What I do is get a list of threads, open their print version and fetch the info.I'm currently using a single webbrowser, because there's no control array anymore. This makes the proccess very slow.Is there a way to open all the threads' print versions simultaneously?(BTW, I'm using DOM functions like GetElementsByTag, so I'll need to get the page's "Document" object.)
View 8 Replies
Apr 16, 2009
I have three listboxes with vertical scroll bars. I'd like it so that when one is scrolled, so are the others. However, I can't seem to find a "scroll" event. I tried this:
vb.net
Public Scrolling As Boolean
Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
If e.Button = MouseButtons.Left Then
[code]....
It works when you click and drag on the listbox area where the items are, but not when you click on the scroll bar!
View 4 Replies
Mar 25, 2010
Consider I have a shared function:Public Shared Function CalculateAreaFromRadius(ByVal radius As Double) As Double
[Code]...
If I have two or more threads in the same vb .net app and each of them calls the shared function at the same time with different RADIUS, will they each get their own AREA? I want to know for each call to the function if it is using same local variables or each call creates new instances of local variables?Will the answers to above questions be same If I have multiple (2+) single threaded apps and they all call the function at the same time with different RADIUS value?
View 2 Replies
Jul 14, 2011
Using Visual Basic in Visual Studio 2008, I have created a Windows form with multiple tabs and questions. Each question has an associated drop-down listbox that the user will eventually click on to enter his or her response. My client has now informed me that she wants to change the standard responses in each response box. There are well over 100 drop-down listboxes, all with the same items, and they all must be changed.
I originally inputted the items using design view. Would someone please tell me if it's possible to edit all of these boxes in the design view simultaneously? When I control + click on more than one box, the Edit Items option that is normally available disappears. Is there a way to do it in code in a manner that would save back into design view?
View 9 Replies
Apr 22, 2009
I've created a two-worksheet template in Excel - the first sheet is for pretty charts, and the other sheet is for the data that drives those charts. I've written a vb.net 2005 app that can dump in all my data on the second worksheet, and the chart worksheet updates perfectly.I would like to do this report several times over in the same workbook. (So the tabs would read 'Person1 - Chart', 'Person1 - Data', 'Person2 - Chart', 'Person2 - Data', etc.)
My solution was to, for every person this report was going to be run for, copy the chart template, and then copy the data template. The problem is that every chart template that is created points to the original data worksheet. How can I set what worksheet each chart worksheet is pointing at?
View 3 Replies
May 31, 2011
I have two unrelated databases and I need to pass data back and forth between them. Right now I have created two separate entity models - one for each database - but this is causing issues in my code b/c I have to do a Using nameofcontext / End Using and when I try to then use some of the results from the first section of the code in a second Using nameofcontext / End Using it doesn't like it - b/c I've closed the connection to the first database!
View 1 Replies
Jun 9, 2011
I'm making a simple game. I want simultaneously go up and left.
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
' If e.KeyCode = Keys.Z Or e.KeyCode = Keys.Up Then
[CODE]...
Left, right, down and up work. now diagonal.
View 1 Replies
Jul 12, 2009
I have a VB2008 music-player program with a listview that acts as a playlist. I created Windows Shell Context Menu entries in the registry for MP3 etc files, so if I right-click such a file in Windows Explorer it gives the option: Play in MyProg. If multiple files are selected in Windows Explorer and sent to be played in MyProg, the first one must be sent to the music player (part of same prog) and the others must be added to the playlist (listview). For this reason I must know whether a commandline call is just a single one or whether other context menu calls will follow.
[Code]...
View 2 Replies
Oct 25, 2009
I need to open several pdf, word and excel files from process.start like command, but only open one file at time.
View 2 Replies
Mar 26, 2010
Ok basically i am making a game (personal/share with others for free)The idea of the game is its 1998 and you have windows 95 and you have to someone obtain windows 98. then slowely new operating systems are released... 2000, xp, vista, 7 and you have to continue to upgrade.
The game in played in a simualted real environment of the windows operating system. The idea is that you have access to the real programs that came with windows 95... (or whatever operating system you have ingame) and you have access to my fake webbrowser which has a bunch of fake websites (offline) in the game. You can either try to illegally download the operating system (viruses can infect you like this (fake ones)) or you can buy it off microsoft but to get money you need to do hacking jobs....
Anyway thought i should give you some back story to what i am actually making. (This project is more a test project since i am only 15 and have only really just started using visual basic for a few months.)
OK now i have so far got it looking almost completely like windows 95 and functioning like it to...
Hey just for the record... here are some nice pictures of it running
First of all heres what it looks like when you are doing selecting which program to open with the start menu:
This next picture is of notepad in my program:
Ok now this picture shows perfectly the active window has become inactive when rightclicking (or normal clicking) the desktop
Next picture shows the display properties windows... not that fasinating yet since i have not finished it and it does not accually do anything yet... its just for looks right now and scrolling through the theme names.
Now this is another tab from the properties window (the screensaver tab) you can't do much here apart from looking at the names of the screensavers)
Ok heres another pic from another tab in display properties... (this shows how you can pic a color to change the background in the display window (clicking apply makes your background of the destop in the fake os accually change)
Ok this image in the same window as the previous one shows how you can select to change different things colors (i only got active titlebar and desktop changing right now...)
This image shows the active titlebar color change...
This screenshot shows the settings tab of the properties window
This screenshot shows windows help (main purpose here is just to show the colour change has taken effect)
Ok last of all this just shows that the maximize button works
I CAN ONLY HAVE ONE PROGRAM OPEN AT ONCE basically this is because i have a panel called program and in that a another few panels such as the active window titlebar...
Now i basically have it so that the programs are all in the pannel programand when you "open" a program all the other panels in this window are closed and the one you "open" is docked... and the label (programsname) is chnged to the name of the program.
Here is a picture of the visual editor if you don't get me...
As you can see there are weird little things in program1 (forget program 2 that is a thing i was trying to do ages ago with my old crappy shell)
these weird things are my programs which get docked to the size of the program panel when you click to open a program...
This method works well but only if you have one program at a time.
A solution i thought of was to copy and paste the shell (program panel) and then just put each program in a seperate shell... this would work... but then i can't open 2 of the same program e.g. have 4 notepads running at same time. I am also having heaps of trouble with the taskbar (there in a button on the task-bar which changes text when the programs name changes)
Anyway i am going to post my full program here (code and all) just download if from this rapid share link.
EDIT: the file was 5 meg and now is 3 meg so that should be easier to download RapidShare: 1-CLICK Web hosting - Easy Filehosting and then run the solution file or whatever
Please show me some code that will get me be able to run infinite windows of same type and different type...
Do whatever you have to do (just make sure you make sure it works on your side before resending the project back to me.)
View 3 Replies
May 4, 2010
I am thining of using a boolean value per each backgroundworker to flag their completion and check all of the boolean values but there should be a better way,
View 3 Replies
Aug 1, 2009
I'm going to attempt to make a shell replacement for the Windows default shell: explorer.exe. I'm not sure if its possible using Vb.Net, but I can't seem why not. My end goal is to use a custom made shell for a Windows Preinstallation Environment instead of the default command prompt. I plan to use a 3rd party program to compile the program with the .NET Framework. Otherwise, it wouldn't work because Windows PE does not support the .NET Framework.
View 1 Replies
May 27, 2009
While navigating to a series of sites at one site the WebBrowser control's DocumentCompleted EVENT is tripped and no other recorded Browser events occur after that. When this happens the hour glass cursor indicates the browser is waiting. From this point it take 120 to 250 seconds of wall clock time before the browser resumes. I am looking for a way to force an abnormal termination without destroying the control. I have tried "Stop", "nav to about:blank" repeatedly without success. How can I force an abnormal termination when the Cntrl is in a wait state?
Consider the following: The last known Browser event to be tripped is a Document Complete event; nothing else occurs after this. When this transpires the Cntrl is waiting.
1:50:657: ============================= ENTER WebBrowser1_DocumentCompleted EVENT ========================================
31:50:657: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^THE NEW WEBBROWSER STATEMENT
[code]....
View 7 Replies
Jun 3, 2011
I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!
Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.
Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click
[CODE].....................
View 2 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 17, 2011
I have two websites "WEBSITE 1" and "WEBSITE 2"...now i want that when someone logs in to "WEBSITE 1" he does not have to log in to "WEBSITE 2" and vice versa...ie when he/she logs in to any one of he websites and opens the other one simultaneously he/she does not have to login to the other one.For eg :- when you are logged in in gmail...you do not have to log in in youtube or orkut or google+
View 1 Replies
Sep 16, 2009
[code] 'The description for the state.getbuttons() is:'Public Function GetButtons() as Byte (is a array of buttons).'The high-order bit of the Byte is set if the corresponding button is down, 'and clear if the button is up or does not exist.This code is used to show if certain buttons of a GamePad/joystick are pressed using the DirectInput method (DirectX SDK).This code shows how many buttons are pressed simultaneously. So 00 for zero and 00 01 if two buttons are pressed. I would like to know what button exactly is pressed (some kind of unique code for each button). But I can't get it done.
1. Is there a way so show all the bits inside the state.getbuttons()? (maybe there is a unique combination for each button).
2. What does &H80 mean?
View 8 Replies
Apr 12, 2011
I have referred to the following question at: Using foreach loop to iterate through two lists. My question is this, with regards to the chosen answer: Can the o.DoSomething be a comparison? As in:
For Each a in ListA.Concat(ListB)
If(a from ListA=a from ListB) Then
Do Something here
End If
Next
I'm using VB.Net and would like to know how I can do what I have shown here. That would basically be to iterate through a joined list separately/independently.
View 4 Replies
Jan 18, 2010
ok im reposting this question cause i got some off track answers last time.I have 3 aspx pages - page1, login and page3. Now when i goto login page from page1, after i login and goto page3 i should be able to open a popup on that submit and the login should change to page3. but if i goto login page directly, the popup should not open and the login will goto page3 as normal design. how can i achieve this?
View 1 Replies
Feb 26, 2010
i'm from Turkey. i have a question. can i use vb6 and vb express 2008 simultaneously? my os is win 7 and runs intel q6600 core2 quad, 4 GB ram. i asked becasue i have no idea what will happen when i do this.
View 1 Replies