Find Data On The Process Level?
May 6, 2011
In my last information seeking I found the answer on a systemic level.
[URL]
Now, I need to find data on the process level and it is documented in a far sparser manner than I am used to seeing. I dont know if the answer is in psapi.dll or kernel32.dll is. I don't know what approach to take since there is little information.
View 9 Replies
ADVERTISEMENT
Jul 18, 2012
I have a form that consists of only a TableLayoutPanel (which fills the entire form) containing a vertical stack of buttons. The resulting app is used in conjunction with another app. What I would like is to have the vb app do something when the mouse enters the form. Unfortunately, all mouse enter/leave events are trapped by the panel or the buttons.
As a quick test I created a form with a tablelayoutpanel (docked to fill the form) containing one button. I added the following code:
Private Sub Form1_MouseEnter(sender As System.Object, e As System.EventArgs) Handles
[code].....
View 5 Replies
Aug 31, 2010
I need comprehensive tutorials of VB 2008 for beginner's which give additional support to my studies so that I can learn VB 2008 easily in less time.
View 2 Replies
Aug 12, 2009
Does anybody know where to find a toolbox for Visual Basic 2005 or 2008 that allow to create level, button, display or other special box used on a bridge of a ship? I want to simulate a small bridge of a ship and I need something that allow me to display engine power, rotation speed, level of pressure, compass and so on.
View 6 Replies
Dec 5, 2010
I am trying to find the current level of zoom in a webbrowser control. I know how to zoom but the same doesn't work for retrieving the current level of zoom. I am trying the following: VB.NET Syntax (Toggle Plain Text )
View 1 Replies
May 2, 2011
I have a 32 bit application that shells a second application that can be 32 or 64-bit depending upon the computer it's running on. I only want one instance of the second application to run at a time, and I need the first application to prevent the second from being launched more than once. I want to be able to use GetProcessesByName to obtain the running processes. This seems to work fine. It's when I attempt to obtain the module data to find out what folder the second application was run from that things fall apart.
[Code]...
View 2 Replies
Aug 12, 2009
Does anybody know where to find a component for Visual Basic 2005 or 2008 that allow me to create level indicator, button, display or other special box used on a bridge of a ship? I want to simulate a small bridge of a ship and I need something that allow me to show engine power, rotation speed, level of pressure, compass and so on.
View 1 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 1, 2012
I am creating an Excel add-in written in VB.NET. I would like to bind KeyDown and KeyUp events to the spreadsheet to record when the user presses and releases the arrow keys while navigating the spreadsheetIdeally, these events would be built into Excel alongside the native SheetActivate and SheetSelectionChange events, for example. Alas, they are not.
View 1 Replies
Jan 6, 2010
In Visual Basic 2008, there's two different ways that I know of to accomplish the same thing:The Dim on the member level:
Dim counter1 as integer = 0
Dim counter2 as integer = 180
Public Sub SampleSub1()
[code].....
View 1 Replies
Feb 5, 2011
how can i make a list,so that every time i open a program on my pc, an item is added on a listbox with the name of the program and when i double click on the item, i get it's folder opened.For example, if i open Mozila, an item with it's text : Mozila Firefox , is added to the listbox and when i double click it , the folder "C:Program FilesMozila Firefox" opens.
View 4 Replies
Sep 25, 2009
I have to install whole bunch of self extracting files every now and then.. so, I was trying to automate the process...
Using process.start ("filename"), i was able to run the exe file. After that i send Alt U to Unzip the content.. Finally the Self Extractor sends message "xx files unzipped successfully..." or similar...
Now, how do I find out the the extraction is completed or the msgbox "xx files unzipped successfully..." popped up ? (I don't like to go thru the window title as there might be other thing going on...)
View 12 Replies
Sep 5, 2009
Ok this is what I am doing, at a specific time (set by user) a program (chosen by user) will lauch. What I would like to do is after said amount of time kill that program that the user chose. I currently am using ".waitforexit()" but this disables my application.
View 3 Replies
Aug 25, 2010
[code].....
View 1 Replies
May 27, 2009
i have use VB.Net 2005 for creating a application for Open new windows explorer by code and close this windows explorer when I close my application. I Open windows Explorer by this code.
[Code]...
View 7 Replies
Jun 17, 2010
what I am trying to do its to automate a user interraction by code.First I have a button named "start" once pushed I navigate with webbrowser to download a file. What I try to do it is to find the window "File download" by his title name, I allready made a seperate thread to loop into to list of process until it found the window "File download"
Where I need help, it is with the process list. I try that code below but I don't see the process "File download" in the list.and once I found it I would like to use sendMessage() api to simulate the click of save.I would like to find another window after to catch the window "save as" and click save and if the window that ask for overwriting appear I would like to find it too and click yes.
Why I use webbrowser instead of httpwebrequest it is because the web site required to login, i try using cookie, etc. No success so I decided to use webbrowser, I navigate first into the login page, I login manually and once it is done I can click the button to start downloading. I want to make an automatic download loop, I have lot of files to download on that site, sometimes .doc and other times it is .pdf
I didn't found a way yet how to force webbrowser to ask for downloading .pdf instead of opening it in acrobat, if someone can help me for that point too
[Code]...
View 4 Replies
May 5, 2009
I am setting some variables when my process starts running. I want to access them in a vb script (may be using WMI or if any other way possible). I am able to see these using Process Explorer utility given by Microsoft, but how to access them in vb script?
View 1 Replies
Jun 25, 2010
if there was a bad virus on my computer and I wanted to make sure that every time that the Application tried to run, I would Kill That Process? Something that Might Look like this, but Idk..
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = 1000
[code]....
Something that looks like that, yesterday I got the code on how to Kill a process by name, today I would like to learn how to ask the computer if that process is running, and if it is, Kill It.
View 1 Replies
Feb 3, 2009
Can i know how to find the CPU Usage of individual Process in %.I found the following code thru the net.But I not getting it. [code] Here m_ Performance Counter.NextValue() will gives the cpu usage percentage..What we have to write in place of these
1) Processor
2)% Processor Time
3)_Total
View 1 Replies
Mar 18, 2011
I have created a simple program which uses a two tier structure of SQL Tables.At the top level, one record holds the date of the activities and linked to it using its primary key as a foreign key, three subordinate tables hold time stamped records.The issue I have been unable to solve is that before adding any of the lower level records for a given date, a newly added top level record must be saved to the database.Doing this manually is simple - but can I rely on my users to remember to do this before they start plugging in the lower level data?I thought not, so I am looking to save the top level automatically.I've failed miserably but I refuse to believe that it's not possible.
View 14 Replies
Feb 3, 2009
How to find the CPU Usage of individual Process in %.
Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total")
Dim cupcount As String = CInt(m_PerformanceCounter.NextValue()) & "%"
Here m_PerformanceCounter.NextValue() will gives the cpu usage percentage
What we have to write in place of these
1) Processor
2)% Processor Time
3)_Total
View 2 Replies
Feb 26, 2012
I am trying to get a list of processes running on remote machine and the username running them. So far I've got:
Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses("myserver")
ListBox1.Items.Add(ps.ProcessName)
Next
View 1 Replies
May 18, 2009
I am attempting to make a piece of software that monitors a 3rd party process for injected code. I successfully made a program that uses readprocessmemory from kernel32 to search for strings in a process. My problem is that the process I am attempting to monitor is running as system and provides an access denied message when I attempt to query any information about the process. Including process.handle and process.modules. Are there any ways I can get this process' handle?
View 4 Replies
Jun 20, 2011
I'm fairly new to vb.net and trying to get information for a project at work! Basically I can list all the applications running on a machine, I cannot however retrieve the details of the user running it! At the moment I'm using the following code after importing System.ServiceProcess and System.Diagnostics.Process:
Public Sub GetProcess()
Dim pr As Process
A = 0
For Each pr In Process.GetProcesses(System.Environment.MachineNam e)
ReDim Preserve arrProcess(A)
arrProcess(A) = New String() {pr.ProcessName.ToString, Process.GetCurrentProcess.PrivateMemorySize64}
A = A + 1
Next
End Sub
I have tried using pr.StartInfo.UserName but that just returns the username of the person logged onto the machine.
View 5 Replies
Sep 26, 2011
I have a question about event handling. Is it possible to detect field level data change in vb.net? i don't want my codes to be dependent on the the bound control's event to detect the change on the field value. I'm thinking there must be a better way (coming from a Delphi background). For example: a change on the Qty field will automatically trigger the event to compute the invoice detail Amount - (pseudo-case sample: Amount = Qty * UnitPrice).
In Delphi, every field is treated as an object with its own properties and events. So it's very easy to associate an event with it.
Example:
procedure TfrmInvoice.qryInvDetQtyChange(Sender: TField);
begin
inherited;
qryInvDetAmount.value := qryInvDetQty.AsInteger * qryInvDetUnitPrice.AsCurrency;
end;
How can I achieve the same using vb.net?
View 4 Replies
Sep 9, 2010
I am using a System.Diagnostics.Process to execute dirquota.exe. I catch an exception at .Start() which is "The system cannot find the file specified".
I am now doing:
foreach (var fi in new DirectoryInfo(@"C:WindowsSystem32").GetFiles())
{
Console.WriteLine(fi.Name);
}
This outputs pretty much every file in that directory apart from dirquota.exe.
View 2 Replies
May 6, 2010
I am trying to learn how to read XML file and created a little program below to start testing what I have read but keep getting error "Data at the root level is invalid. Line 1, position 1"The line where the error is coming from is the line "xmldoc.LoadXml(strFile)".. any ideas?
Code:
Private Sub cmdReadXML_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles cmdReadXML.Click
Dim clsk As New clsHx
[code]....
View 6 Replies
Jan 31, 2012
I have a context.Request.QueryString item that is returning the wrong value in the ProcessRequest method of a .ashx handler.
The code is like so:
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim strOrderItems As String = Convert.ToString(context.Request.QueryString("OrderItems"))
End Sub
One of the values returned by "OrderItems" is wrong. How can I find out what process has called this method to fix the incorrect data?
View 1 Replies
Sep 5, 2011
I have a process serves as an application updater.It checks it's local cache of files and compares this against list of files online.On it's first run there are no files in the local cache and it therefore downloads ~100 of these files.[code]This appears to work very well, since Explorer confirms that all files are extracted and available.However when I later run this process again, it cannot verify the existence of 6 of these files and therefore tries to download them despite the fact that they are clearly both present and up to date.The offending code is a simple File.Exists call which appears to deny the local existence of these files, and therefore tries to get them again.The system continues to work well, but over time the continual downloading of these 6 files is going to get kind of silly.
View 1 Replies
Feb 12, 2011
I have multiple level of For Each and in each level, i have a Linq that is the 'In' criteria as in:
[Code]....
It will go inside each for (because the value is not nothing), however, it will only loop (next) in the very inner 'For Each t In tFor'. After it is finish inner loops, the outer Fors' or Next will not execute... even thought there are more than one values in that 'In'... like 'sFor' or 'fFor'. i've noticed while debuging, while break at the for (for example 'sFor', before stepping in), i get the error message:
"Enumeration yielded no results" when i expand the result for that variable and it will not step into it. but if i do not expand the result, it will step in. It seem that some how, once an element is accessed for that 'In' collection, it breaks (meaning does not loop for the rest of the elements) the next for that collection is this a bug or am i missing something in Linq? BTW: i believe it has something to do with the SqlDataReader in the Linq. I'm working with IAsyncResult.
View 5 Replies