Program Freezes Until Shell Interaction Finishes?
Aug 9, 2010
im working on a little project what executes a bat file on a button click using this command:Interaction.Shell("read.bat", AppWinStyle.NormalFocus, True, -1)however when this is executed the program will become unresponsive while it is running... this may be simple but is there a way i can make my program be responsive and for it to execute in the background?
View 5 Replies
ADVERTISEMENT
Feb 21, 2011
I have a program that starts another program after setting the regkeys basically the program continually syncs the calandar of outlook and another application.I set the regkeys than launch the c:sync.exe app. I have tried a simple process.start and launching the process as a thread and they both do the same thing: The other process starts and works as it should but my main program goes "White screen" or "not responding" until the process.start has exited.
I want the process.start to run in the background so if users click in my main app it responds and truly that they can access the context menu of my main app from the taskbar while the process.start is running.
View 5 Replies
Jan 18, 2012
I want to open a notepad file using VisualBasic.Interaction.Shell method. At present I get a file not found exception using the following code.
int pid = Interaction.Shell(@"D:abc.txt", AppWinStyle.NormalNoFocus, false, -1);
But this works:
int pid = Interaction.Shell(@"notepad.exe", AppWinStyle.NormalNoFocus, false, -1);
[code].....
View 1 Replies
Sep 1, 2010
On my program the user clicks a button which then runs the main code for my program. The problem is once the code is executed I can no longer move or interact with any form boxes, reliably at least . Sometimes there will be a period of delay where I can move it for an instance. Is there anyway I can make it so that my form is able to be moved while the program is running?
View 3 Replies
Mar 26, 2011
In a function I have
Do Until PageLoaded() = True
{
Nothing
}
The problem is it freezes up the program and makes it unusable. I fixed it using timers but it makes my program real sloppy and hard to edit.
View 13 Replies
Jun 3, 2011
I'm trying to find a way to make backgroundworker do what's in the webbrowser. There is a time-consuming part in the webbrowserdocumentcompleted event that I want backgroundworker to tackle. Unfortunately, I don't know how to link that part to backgroundworker so that BW can do that job instead of webbrowser.
Here's what in the webbrowserdocumentcompleted event:
Sub WebBrowser1DocumentCompleted(ByVal sender As Object, ByVal e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If CheckBox1.Checked = True Then
[CODE]...
The time consuming part starts from line 2 to line 30. My program freezes whenever webbrowser tries to do this job, so I need BW to do this specific job instead.
View 4 Replies
May 21, 2009
The program starts. When I click the Start button the original form disappears just as I intended, but then it just hangs there. No picture shows up. The CPU heats up and gets louder. It freezes and I sometimes have to CTRL+ALT+DELETE just to exit the program.[code]
View 2 Replies
Aug 1, 2009
[code].....
View 15 Replies
Apr 15, 2011
I am making a program that requires the user to enter values and select the correct radio button. It freezes when I click Ok button and I am not sure why, I think I am not using the Do Until...Loop properly.
View 19 Replies
Sep 2, 2009
I have a program that has multiple tabs, with roughly 100 - 400 controls of varying types on each area. The program takes about...4 seconds to load, which I don't think is right.I did a few memory tests on the program startup, and idling it. At startup, the program uses 100% CPU usage, and 102mb of RAM, but then the form displays, the RAM drops to 20%, and CPU at 0%.Changing a Tab locks the program up for 1 to 2 seconds depending on the tab, and memory fluctuates.Am I doing something wrong here, when a program form has literally over 500 controls of many types, spanning 6 tab pages, or should I be doing something different?
View 12 Replies
Sep 15, 2009
the hex convert code seems to work etc but it freezes but it does its job eventually I read that backgroundworkers can be used to fix this issue but I have no idea how to use it for my script
[Code]...
View 2 Replies
Mar 15, 2011
Is there a way to code, so that if your program freezes over a period of time (5sec), it just stops trying to do it, and goto something else.
"On ERROR" wont work, since its not a error. "Try" doesnt work ether.
Its because I'm am programming something that can login to a router thought telnet, and sometimes the telnet ActiveX doesn't read the buffer or the line proberly, so when the .GetLine() func is called, it freezes. And i want away to goto another point if it keeps freezing for more than 5secounds. The telnet ActiveX that, I am using is Dimac w3sock.
View 5 Replies
Jun 6, 2009
When you press the send program freezes and you can't do any thing how i can add button puss resume and stop
[Code]...
View 3 Replies
Nov 9, 2009
I was making a little timer. When the phone is not in standby, my app is working fine. But when i put the phone in standby it stops. When phone is coming out of standby, the timer is going again on the time i put the phone in standby.
I know that other tools keep working, so i there a simple way to do that?
View 1 Replies
Mar 3, 2010
I am writing a setup program that runs as administrator. If I shell a program from the setup program will it also run as administrator?
View 6 Replies
Dec 3, 2011
I am trying to execute the shell script in vb.net.[code]...
The script doesn't create the outfile mentioned in -out switch. The path mentioned is correct and also the command with switches is correct. It runs well in command prompt but not in the program. [code]...
View 1 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
Jan 5, 2010
I'm launching an Access ADE, using Tony Toews auto FE program. The AutoFE programs will, if newer version available, copy the latest version of the ADE from the server, then launch it. My code looks like:
Dim stAutoFE As String = "V:Appsautofestartmdb.exe /cmd /inifile: " & """" & "V:AppsAutoFESSP.ini" & """"
Shell(stAutoFE, AppWinStyle.Hide, True)
System.Threading.Thread.Sleep(1000) ' Time delay
[code]....
I had to put the Sleep delay in, otherwise the GetObject would open the ADE a second time.But I don't know how long the copy from the server will take, so I need to remove that Sleep line and check that the ADE has opened.
View 2 Replies
Jul 1, 2010
So, let's say that I have a VBA application inside of whatever Office Application. I have created a command-line VB.net program to do all of the fun web-services stuff.Okay, the VBA application calls Shell() to run the command line program. Now, what is the best way to get information (a tracking number for a package) from the VB.net program back into the VBA program?
View 1 Replies
May 4, 2009
I'm trying to make a per-user shell for a Vista box to simplify use of a particular system for my users. I have no problem making a program that I want to use and I am familiar with the process of editin the registry to make my program the users shell but I've run into a snag.
Whenever a user with the custom shell logs on, there is a delay just after they enter their password where the system will sit at "Preparing Desktop" for about 30 seconds. I know for a fact that the user desktop is already made and this shouldn't be taking that long.
I've poked around on the web and see various places saying that winlogon is waiting for the shell to flag a "shell ready" flag of some sort but I am unfamiliar with any such flag.
Anyone know of such a fix for the long login time or anything about a shell ready flag?
View 10 Replies
Jun 15, 2010
visual basic 2010 after converting a program from visual basic 2008 is stating that the Shell function is a namespace and cannot be used as an expression. this can be fixed with the create sub feature but when debugging causes an error stating that there is a nohandled exception.
View 5 Replies
Jun 11, 2012
I need to be able to kick off a vb.net program on a windows server from a unix shell script on an AIX server. What what I need to do to make this possible? I'm a newbie on the .Net side, but I was thinking, maybe make the vb.net program some sort of web service then have the unix shell script invoke that somehow
View 2 Replies
Jun 22, 2010
Whenever I use this code, I get a File Not Found exception, even though the file paths are all correct. [code]...
View 3 Replies
Nov 15, 2010
I have the following problem. I have a worker in VB .net (2010) which runs a shell-program. The shell program is a service and output stuff like:
Server initializing...
Server opening port...
more info...
I am able to 'catch' the output of the shell and add it to a textbox (using set text function). And I am able to Cancel the worker by clicking on a stopbutton, however when there is no more output by the shell I cannot stop the worker anymore. At least I suspect that's the case. I've tried checking for endofstream (commented section) but that doesn't work. I've also tried to same code with some test text in stead of 'clsProcess.StandardOutput.ReadLine' and that also works. So I came to the conclusion it must have something to do with clsProcess.StandardOutput.ReadLine being at the end?
Try
clsProcess.StartInfo.UseShellExecute = False
clsProcess.StartInfo.RedirectStandardOutput = True
clsProcess.StartInfo.RedirectStandardError = True
clsProcess.StartInfo.FileName = serverpath + config_executable
[Code] .....
View 1 Replies
May 8, 2009
I am using this statement
CODE:
The command procedure calls a Java program that opens a dialog box, the cmd and java exe shows up in task manager, so I know it is being called, but no dialog box. I know normally having anything show up on a server that requires user interaction is a bad idea, but in the case, the users remote into the server to do their work. (They have to because of the environment) So, there is no problem with them being able to respond to a dialog box. I just need it to show up.
(I cannot rewrite the Java program as the latest source is not the right version) Running, Framework 2.0, 3.5.
View 7 Replies
May 19, 2011
I am assuming there is a way to have this sub in? I am assuming Do Until Loop is the way to go[cod]e...
View 1 Replies
Apr 28, 2012
I'm filling a FlowLayoutPanel with PictureBoxes at runtime, each picturebox has an image from the List(of Image). Depending on the selected folder, loading the images "freezes" the program, so I want to use a BackgroundWorker. I'm having problems with "Cross-thread operation not valid". I want to fill the FlowLayoutPanel with the images from selected folder and a ComboBox with the names of the files.
View 4 Replies
May 28, 2010
Has anyone else had issues with Visual Basic 2010?My visual basic program has been running fine for months but recently every time I try and load a project (any project) the program freezes, then I have to close it down and reload, every time I load Visual basic for the second time I get the following error:
HTML
An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error.Plus when trying to run a project in debug it takes ages to load (around 5 minutes) this has only started happening recently, projects were loading in seconds.
View 9 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
Oct 29, 2009
how to create an event which runs when a proccess finishes.
First, the program launches a batch file, so in the task manager, it appears as "CMD.EXE".
So, the event goes on when the CMD is over.
I'm not sure about what code should I use to do so.
View 3 Replies