VS 2010 : Get Network Info Of A Process?
Feb 27, 2011Is it possible to get the network information of another program/Process like Bytes sent and Bytes received. I looked under the Process class but that didn't yield any results.
View 1 RepliesIs it possible to get the network information of another program/Process like Bytes sent and Bytes received. I looked under the Process class but that didn't yield any results.
View 1 RepliesI 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]...
How to find Network info. I know how to get IPaddresses.
Example:
Dim host As String = System.Net.Dns.GetHostName()
Dim LocalIPIPv4 As String = System.Net.Dns.GetHostAddresses(host).GetValue(2).ToString
"Your Local IP address is: " & LocalIPIPv4
I need to be able to get the current users LAN id using VB.NET and then use this info to pull out the phone number and full name and perhaps other dept info from the address book in outlook. The application I am building is web based in VS 2008, and the users will access the site once they have logged into the companies network. So I need to obtain their LAN ID. They will then be able to send an email using the smtp client. I need the email to send the lan ID of the person as well as include the address book info in the subject. how to use the smtp client.
View 9 RepliesI am trying to do is fill out a form with certain info, put the info into an array, and write it to a listbox using loops, arrays, and maybe a function if I need one. This is for VB2010 and here is what I have so far... I think there are ways to make it shorter but I cannot figure it out.... maybe just brain dead from all the coffee I have been drinking!
[code]...
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 Repliesi can get all runing process info with that code, but some applications runing as hidden and this code can not catch the hidden process, how can get all runing process on the pc ?
Dim myProcess As New Process()
Dim ps As System.Diagnostics.Process [code].....
So I transitioned over to Win 7 64 bit, and am starting to incorporate it into my program. I understand that My.System.FileSystem.SpecialFolders.ProgramFiles will resort to x:Program Files if the host system is 64 or 32 bit. However, if the host is 64, and the program is 32 bit, one would need to acess x:Program Files (x86).
My question is this:How can I test an executable to see if it is 32/64 bit, and then apply the proper program folder?
I want to create a Small application for all the computers in my house that Monitors Network Traffic Because we are using large amounts of data each month and that leads to high costs.I can Monitor A computers total traffic with the system.net.networkinterface namespace. Now I would like to know if it is possible to Monitor an Process/applications Network Traffic to pinpoint The Problem.I've Read About WMI But there is so Much info on MSDN that i can't actually get to what i want and i don't think there is something so direct like the amount of bytes sent over the network.
View 3 RepliesImports
System.IO
Imports
System.Windows.Forms
Imports
[CODE]...
I don't understand why nothing is being returned from the SQL)
I want to develop a process that will monitor computers that logon to my network. Gather information such as computer name, time of logon and log out.The process would be located in the icon tray?
View 3 RepliesIm simply trying to load a file on my network. The file is a database file for access.. This code opens the file on my computer. However on the four computers tested 2 of them throw an error stating that the user canceled the operation. However the user didn't do anything. The error is thrown automatically. The other two are working perfectly fine.
[Code]...
get a list of printer's (name,port,model) from a computer over the network. I know how to list my own, but it's from querying the Win32_printer object on my machine, I need to be able to do something similar on a remote machine.
View 4 RepliesI am working on a small VB application that listens for commands sent from an Android app.
One of the functions is to extract an archive. I am familiar with how to listen for the unrar process to finish, so I can display a progressdialog on the phone while the extraction is happening, and clear it as soon as it's done.
BUT ... if there is an error/alert from WinRAR, WaitForExit() never gets called because WinRAR is still sitting there open until I click "OK" on the MsgBox.
For Example ... if you try to extract a file that is not actually an archive... an alert will pop up saying "No Archives Found", and basically everything is halted on the VB app and the Android app, and the Android app just sits on a progressdialog saying "extracting..." until you manually hit "OK" on the computer.
As you can imagine, this is a problem if the whole point of your app is to NOT have to go over to the computer.
So... I am wondering if there is something similar to WaitForExit() that will wait for an error and allow me to close out the alert and let the process end.
Here's my Sub for the UnRar command:
Private Sub UnRar(ByVal WorkingDirectory As String, ByVal filepath As String)
Dim objRegKey As RegistryKey
objRegKey = Registry.ClassesRoot.OpenSubKey("WinRARShellOpenCommand")
[Code]......
Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:
[Code]...
I am working with saving and deleting images. What i really want to do is check and see if an image exists in the destination folder and if it does automatically overwrite it. i couldnt figure that out so i figured i would look to see if the file was there if it is Delete it then write the new file..The issue is i keep getting this error.The process cannot access the file "FileName" because it is being used by another process. [code]
View 5 Repliesget information from wikipedia.So the info goes to TEXTBOX1.TEXT and then creator to label8.text and then the image will go to picturebox1.image.i have a listbox with all the videos?
View 4 RepliesI'm developing an application that will need to be used with a client.The software can be managed online ( at website ) and by desktop client.I can't find any information in how to send information to website and retrieve data from website. The PHP code is entirely written. how do I get something like:
Client -> PHP -> Create Account ( Send this to a file like create.php?user=USERNAME&pass=PASSWORD )
The PHP file ( stored online ) will run the information and create the account?How to send that information with VB .Net?After that, PHP will return a info if it's ok or not the user account creation.How to retrieve the results from PHP and show them in the client?
[Code]...
If its saved succsessufully to display message that is saved. I want just little program to edit 1 table,
I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).
View 4 RepliesI have a WebBrowser in a Windows Form, and I want to automatically fill out a login and password field, then send the data to the server to log me in. How can I do this in VB?
View 1 RepliesOk I got a variable named Accounts and stores the user accounts. They are seperated like this
Account|Pass|Admin&Account|Pass|Admin
As you can see after admin there is a symbol (the &) meaning that before the & its an account and after it its another. In other words its like this
Account|Pass|Admin
Account|Pass|Admin
so how can I make a loop to count how many & there is in the Variable named Accounts?
I have the following database setupWhat I want to see is the tblOpponent.oppTeam when given a matchID in tblGameI tried the following SQL string in VS 2010
strSQLString = "SELECT tblOpponent.oppTeam FROM tblOpponent WHERE tblOpponent.oppID = tblOppBowler.oppID AND tblOppBowler.oppBowlerID = tblGame.oppBowlerID AND tblGame.matchID = " & MatchID.ToString
[code].....
I am experimenting with Property info and getting their values etc. The below code gets the properties of a layertable record and creates my PropertyListViewItem
Dim ltr As LayerTableRecord = DirectCast(obj, LayerTableRecord)
For Each prop As PropertyInfo In ltr.[GetType]().GetProperties().OrderBy(Function(p) p.Name)
Try
[Code].....
I have a combo box appear if I click on an item that is not read only. What I want to do is populate that combo box with the values it can accept. ie If it is a boolean, add True and False etc.
I am working on a media player, and I would like to setup a local playlist feature. I am using a single ListBox and its "Display-" and "Value-Member" properties. The display is the song's Artist and Name, and the value is the song's file path (i.e 'C:UsersUSERMusicetc.').To write the file path to the .txt file, I believe I can use the following code:[code]
View 18 RepliesI made a .vb program with database.mdf and some tables using Microsoft Visual Studio 2010 and i published it to make a installer (click once).
This is my first .VB project I used Google, you tube, this SITE and etc... to learn the basics code.[code...]
How can i display a certain region/selection (rectangular) from an excel file into a form.
View 9 RepliesFor a class project I am supposed to search through the attached file, and write to a new file the years between 1789 and 2009 that are not present in the fifth field. What is my best bet for determining what years are not present?
[Code]...
Should I make an array of integer between 1789 and 2009, then search for every year in the file, then set a flag to false if not found; is there a simpler way to accomplish this using LINQ?
I am trying to get my project to be able to save the data been input from a user. I have uploaded a screen shot of the dialog I am currently trying to use. You will see that I have got a combobox for member at the top. What I want is when the "new" button gets clicked then I can add the desired information then click "Ok buttton which will then save the information.
I want to be able to select members from the combobox after multiple have been recorded to be able to delete or edit them. I have got as far as "changing" the combobox to a textbox for input purposes. I have tried a few attempts to get it. I am getting "ConfigurationErrorsException was unhandled"
I have 2 tables. I'm getting info from table1 which is loaded in an rtb.
vb.net
]Dim cmd_info As New MySqlCommand("SELECT kan_info FROM kan_info WHERE kan_id= '" & kt_id & "'", conn)
reader = cmd_info.ExecuteReader
While reader.Read
beslag_kanton_info.Text = _
"RB_REF: " & vbNewLine & _
"KT_REF: " & vbNewLine & vbNewLine & _
reader.Item("kan_info").ToString
End While
This works great, but I need to add extra info after "RB_REF:" and "KT_REF:" (e.g: RB_REF: 12345 / KT_REF:6789) Those values are located in another table. How do I change the code/query so it also get the necessarily records from that table? Obviously there is a column "kan_id" with same values. I can't merge the tables btw.