I want to loop through the processes on the machine, and I know what the name of my executable is, but it could conflict possibly with a same named executable. It is OneSpot.exe - so is there some other better method of detection to know that it is the right one?
I am a new member here and a new user of VB.Net.So, I would like to know how to make an application that can control the processes and the services in a remote machine.
I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.
I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads
I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....
Makes the following statement about the code below:
**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.
Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?
For some time ago i have notice that my App on every start make a call to csc.exe and starts it. I know for sure that that did not happened before and I can not find out why this is happening now, or better to say: what did I do in code to make this happened? I have google-it and found out that csc.exe is some kind off on-the-fly compiler for C# (If I understand it correctly ) but my App is in VB.net so I am a bit confused. Can someone explain it to me in general what have I did in my VB.NET code to make my App on every start calls csc.exe?
i have a small issue while developing a windows application using VB.Net . i will explain the scenario here. My application contains one form which has two tab buttons. say tab1 and tab2. In tab1, i have an option to download data from various sites. this takes few minutes. lets say 15 minutes. and in tab2 i have an option to view the logs. my problem is i am unable to click the tab2 unless and untill the downloading finish. my doubt is how to do more than processes at the same time. if i am right we need to use threading concept here.
I have a need to search for a specific process in task manager and attach (dock) my application to the window for that process. I have this working just fine. The problem I'm having is that sometimes this process may be running more than once (for example: running two Internet Explorers would put two iexplore.exe entries in Task Manager).
Is there a way to get the one that was opened first? I'm not sure how they get "sorted" in the Process list, but currently I am retrieving the first occurrence of the process and docking to it, but I'm finding that it isn't always the correct one. How can I make it always dock to the process entry that was opened first?
I'm building my first application in VB2010, this application consists of running 3 different programs; one after the other. I use a progress bar for task progress. My question is on how to make the application go to the next program after finishing with the previous one? Here is some of the code:
Private Sub Timer1_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(1) If ProgressBar1.Value = 3 Then
I have done a lot of searching and cannot find a solution to my problem of, my application appearing in the processes even after exit.
Note: It doesnt appear in the processes due to the type of exit i have used after the click function happens.
Public Class FCAM Public Sub Launch(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Launch_FCAM_FarCry.Click Process.Start("....Bin32FarCry.exe", "-MOD:FCAM") System.Windows.Forms.Application.Exit()
I am trying to check for certain processes that is running and then inform the user of those processes via textbox like "The programs; -name of the processes running goes here- are running". [code]
DLLs made with VB.Net are different from DLLs made from other ways (i.e. with VB6). I wasn't albe to understand the cause. It might .NET has a bug.[code]...
i am trying to develop a program that will get all the processes in the task manager and from there, i'll get a specific application so that i will restart it. the problem is this:
I can call that specific application yet before restarting it i shall manipulate it's pause button before i can actually kill it,.HOw do i "click" the pause button on the called application? Can you help me with the code that i need to use?
Trying to dim a certain amount of process (determined by Environment.ProcessorCount) to run several processes which do not support multi-threading. I have already Dim'd proinf(6) as Process.ProcessStartInfo because I have designed a queue for the processes and this encounters no errors.
I am looking for some code that will end the processes of a running program. I have found many post on how to do so but I have found that they are over complicating things. I am using this code to see if a processes is running.
code Dim ProcessRuning() As Process ProcessRuning = Process.GetProcessesByName("example") Do While ProcessRuning.Length <> 0
i'm making a new project something like a task manager. i could manage to get the names of all running processes
Imports System.Diagnostics Public Class Form1 Dim proc As Process
[Code]...
it works. it gets process names (but without extentions) what i want to do now is to get the image path of each process. i think i will have to use a different control probably data grid view. can somebody tell me how to add items to datagridview instead of listbox? and how to get each process image path( to data grid view)?
I am making a little program for the Game "Flight Simulator X" and I need to monitor the Process state of the Program.My Main Question is How do you manage a Process so on a Label you can set maybe an If...Then...End If Statement to tell it what to say.
I have a program that instantiates Excel, programatically updates it, and then closes it. In some cases, when I look in the task manager/processes, I can still see 1 or more copies of Excel running.
1) Is there a way I can, after creating an object reference to Excel, identify the PID or some other unique identification?
2) Using that, is there a way, after I think I have told Excel to go away, to see if the PID (or whatever) is still active?
3) Given that I have a PID, can I get a new object reference and try to tell it to go away nicely
4) If it still won't go away, can I force an end process of the task?
5) Is there a library or routine available that will return the active processes so I can search to see if there are any copies of Excel still running?
6) using the approach in 5, can I also find out if the item associated with the PID is running just as a process and not as an application?
I want to be able to cycle through the active processes on the system and find when my program starts? It has the name 'Calculate Distance' as the form1.vb text. There fore, I want to be able to close a splash screen when the form1 loads. This requires checking currently running processes. How do I do that in VB.NET 2005?