Obtaining Network Lan ID And Getting Info From Outlook Address Book
May 19, 2010
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.
I am trying to search my GAL, as my GAL contains over 300k names its not ideal to load the complete list. Now, I found some code on MSDN which allows me to read the GAL, but I can figure out how to search. I would need to use a similar to the SQL LIKE% as there multipul exchange users with the same surname.
MSDN Code.
Dim itemx As ListViewItem ' Create an Outlook application. Dim oApp As Outlook._Application = New Outlook.Application()
I work for a somewhat large company.There are about 160 Windows XP Pro users. We are still using Microsoft Office 2000 for the most part.We have upgraded some users to Office 2003. We are not using Microsoft Exchange.I have to export every users' Outlook 2000 or Outlook 2003 Contacts into an Excel or CSV file every 6 months as a way of backing the Outlook Address Contacts.Currently I am doing this by physically going to every pc and manually exporting the contacts.This is a large pain.I am trying to find out if I can use or create a Visual Basic 2008 Express program or script that will export the contacts from Outlook and save it as an Excel or CSV file.The name of the file should be the same as the computers net name.It should be saved in the same location, on the network, each time.I am new to programming and new to VB 2008 Express.I do not know or have any code to start with.
I want to be able to search the windows event log (security) on our 2008 DC to find out when a certain user logged in. Using the system.diagnostics.eventlog namespace I can search and view information based on the event Id(4624) but I cannot work out how to display the login name of the user.
I am developing an application to be deployed on an XP Tablet edition PC. I am interested in monitoring information (e.g. Channel, AP MAC Address) about the Access Points that I am connecting to to location where in the facility a given Tablet PC is operating in.I have been unsuccessful in finding any code samples/snippets showing information on how to retrieve this sort of information.
I have a problem where I am running a Console App to obtain some computer information on a pc. The pc has the following specs:
Windows XP Media Center Edition 2002 Service Pack 3 2 GB RAM .NET Framework 3.5
The script runs fine on my Vista Ultimate PC. However, my friend runs it on his pc and nothing is written to the file. The directory and the file are being created, but nothing is in the file. Is there something that I am missing about XP Media Center Edition?
Here is the code: Dim cFile As String = "C:System InformationsystemInfo.txt" Dim objWriter As New System.IO.StreamWriter(cFile, False) Try Dim mObjOS As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem") Dim mObjCS As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_ComputerSystem") [Code] .....
Our company uses Remote Desktop to allow our staff to access their computers remotely. Our staff first VPN's into the office and then from there, they can use Remote Desktop to access their computers.I would like to obtain details about where employees are logging in from. More specifically, the computer name they used to launch Remote Desktop from and/or source IP Address.Is this possible? If so, does anyone have any examples?
The problem is in the line that contains address.save(filename) the part address.save is underlined. When I backspace over the save, it gives me the options of what can go there and save isnt one of them. I am coping this out of a book.[code]...
Are there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.
SocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.
May I expose my "small" problem?Here, i'm following a course in my University, called Introduction to Programming, there are only beginners in our class. i'm also a newbie, to say so.And some stupid students were not paying attention so he gave us a crazy assignment for Friday 30th.This is what his assignment consists in. I have created a PDF file from his requirements and some samples of Code.[url]
How to create an address book in visual basic? I have the VB2008 express. Just a simple one. FirstName, LastName and Phone. I should be able to add from there. The resulting file could be an excel based or text file. I do not have Microsoft Access at home.
I have a SQL Server Data Base that I use to keep all my contact information so that I have it in one central location and can easily add more data to it. I want to be able to do two things:
1. Update the Windows Address Book or Outlook Express or Outlook directly from an application on my PC. Add, delete and update contacts and all contact data. Eventually, I would also like to be able to change the options if possible.
2. Update contacts in Blackberry devices directly from a PC application. Again, Add, Delete and Update contacts and all contact data. Currently, I have two Blackberry 9000 Bolds, but eventually I do not want to be limited to only this model, and I will also want to be able to set options on Blackberry devices.
Currently, I update the Windows Address Book with a CSV file created from my Data Base Application and import it using Outlook Express Import. However, Outlook Express will not import or export all fields. For example: Spouse, Birthday, IPAddress, Anniversary and more. I know that these fileds can be updated because the Blackberry Desktop Manager can do it.
It is a pain to have to first Sync Outlook Express with my Data Base and then Sync the Blackberry with Outlook Express. Especially when all fields are not updateable via CSV and the Blackberry Desktop Manager does not map all Outlook Express fields. However, it does map more fields than what are avaliable via CSV which is how I know that it is possible to update more fields in the Windows Address Book.
I use Visual Studio 2005 soon to be 2008 (maybe ) on Windows XP SP 3, 3.0 Ghz intel Pentium IV, and I do know that there is a Blackberry plug-in for VS which I have downloaded but it is not installed (no experience with it nor do I know what it might do to VS).
I want to add an address book to my emailer. I have 2 buttons on my main form, button1 = Add Contact To Address Book , button2 = Import Email Address. Basically when I click add I want another form to open and the user to be able to add an email address and save it and if I click import I want the same form as the "Add contact" and enable the user to select a contact and add it to textbox1 on my main form.
I want to make a program that looks like an address book (name, birth date, phone, e-mail etc) and stores all the persons data in a txt file. If I add a new person, for example, it will be added after the last person that was added in that txt file.
I need to make an address book that doesnt use a database.It suppose to have [code]All information shall be stored in a structure at run time.The application should read and write to a data file.Make sure the application includes previous, next, add, save, and delete buttons.When graded by your instructor, there should be at least five entries in the address book.But the book doesnt show me how to do it and the only online stuff I can find is threw databases and nothing else. I asked the teacher and he says no database for this one, the idea is to use flat files (txt) and I have no idea how to even really start this one.[code]
I have been assigned to create a simple address book in VB 2005 and have got as far as I can with it. Contact entries are to be stored as an array of objects rather than to .txt file or access database (I know they will all be lost when shut down). I suspect this is probably pretty straightforward if you know anything about VB - unlike myself obviously.
Public Class Form1 Private objContact As New ArrayList Private Sub BtnAddContact_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAddContact.Click Dim objcontact(100) As Contact [Code] .....
I am writing a simple Address Book Application using Typed Dataset & Bound Controls. 1<sup>st</sup> Form for Entering Addresses 2<sup>nd</sup> Form for Adding New 'CITY'. To select a city for address I am using a data bound combo box which shows a list of Cities.
While entering with a address if user found the required City Name is not found in the Combo list, he opens a 2<sup>nd</sup> Form to Add a City name to database & returns to Form1.
Here the expected newly added city doesn't appear in the combo list, so I tried to Refill the underlying table with following code
I am trying to output the email address of the current user through an Outlook addon. I haven't been able to get any other examples to work. The closest I have come is:
I have a vb.net 2008 form that sends and email along with an attachment.
I want to offer up a list of available email address to choose so my user doesn't make a typo.
Problem is the email addresses are not part of any GAL / group because they are from outside the company. However if my user begins to type the email address such as xyz outlook begins to make suggestions such as [email]xyz@anothercompany.com[/email]; [email]xyz@noinagroup.com[/email] because my user has either sent them an email in the past or recieved one. Or if the user types a name outlook will suggest. Jon Doe Jon D. Doe
My question, where does outlook keep this list and how can I retreive it using vb. I know how to get the Global Address book and the other contacts but I need the list of emails that are not associated with any groups but are in outlook.
I'm essentially re-learning VB for the first time in 15 years to try and accomplish this task - I have a project to do for work which involves taking .doc files which contain hundreds and hundreds of names, addresses, e-mail addresses, and amounts they donated to the non-profit I work at, and inserting them into Outlook's contacts. I'm trying to piece together the bit I've figured out about Outlook/VB integration to do so, but unfortunately, most of the information I can find is the other way around - getting info FROM Outlook and inserting it elsewhere.
The doc file is essentially formatted like this: FirstName LastName 423815 Central Park West FirstNameLastName@Somthing.com $3000.00 And repeat.
So for the email addresses, I obviously need to look for the @ and copy from the previous space or line break to the next - that's the theoretically easy part, along with the money donated, since I can similarly look for the $. The part that I forsee stumping me is, how to discern first and last name, and treat them accordingly, entering them into the right fields in Outlook? Same with the address.
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
how to load data (Book) to text box when user just enter the book code?how to load data (student) to text box when user just enter the student id?how to write the code when user click the save button , the book quantity(Book) will reduce 1 and the all the data in textbox will save in database(Issue)the interface is like
[URL]
the database is show at
[URL]
the code is
Public Class frmIssue Dim dt As New DataTable() Dim rowIndex As Integer = 0 Dim rowIndex1 As Integer = 0
Is 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.