background preloader

Ethernet

Facebook Twitter

Determine your computer's IP address with VB.NET. Did you know that you can use VB.NET's System.Net.Dns class to find out your computer's IP address? Irina Medvinskaya offers two code samples that show how this is possible. There may be times when you need to know the IP address of your machine, such as when you're writing some networking code. This tip shows how you can figure out the IP address of your current computer using VB.NET's System.Net.Dns class. System.Net.Dns class This class offers a simple way of determining the IP address of a machine by utilizing its methods GetHostName and GetHostByName. I'll present two examples in which I achieve the same functionality in two slightly different ways, while the end result for both is exactly the same. Method 1 In Listing A, I determine the host name of the current machine by utilizing the GetHostName method of the System.Net.Dns class.

Method 2 Miss a tip? Check out the Visual Basic archive, and catch up on the most recent editions of Irina Medvinskaya's column. Language Integrated Query. LINQ also defines a set of method names (called standard query operators, or standard sequence operators), along with translation rules used by the compiler to translate fluent-style query expressions into expressions using these method names, lambda expressions and anonymous types.

Many of the concepts that LINQ has introduced were originally tested in Microsoft's Cω research project. LINQ was released as a major part of .NET Framework 3.5 on November 19, 2007. Architecture of LINQ in the .NET Framework[edit] Standard Query Operators[edit] In what follows, the descriptions of the operators are based on the application of working with collections. Many of the operators take other functions as arguments. Select Where The Where operator allows the definition of a set of predicate rules that are evaluated for each object in the collection, while objects that do not match the rule are filtered away. SelectMany Sum / Min / Max / Average Aggregate A generalized Sum / Min / Max. Join / GroupJoin OfType. What is Microsoft .Net Framework.

The Microsoft .Net Framework is a platform that provides tools and technologies you need to build Networked Applications as well as Distributed Web Services and Web Applications. The .Net Framework provides the necessary compile time and run-time foundation to build and run any language that conforms to the Common Language Specification (CLS).The main two components of .Net Framework are Common Language Runtime (CLR) and .Net Framework Class Library (FCL). The Common Language Runtime (CLR) is the runtime environment of the .Net Framework , that executes and manages all running code like a Virtual Machine.

The .Net Framework Class Library (FCL) is a huge collection of language-independent and type-safe reusable classes. The .Net Framework Class Libraries (FCL) are arranged into a logical grouping according to their functionality and usability is called Namespaces. In the following sections describes how to .Net Framework manages the code in compile time and run time . Microsoft .Net Framework Tutorials. Visual Basic .NET. Versions[edit] Succeeding the classic Visual Basic version 6.0, the first version of Visual Basic .NET debuted in 2002. As of 2014[update], seven versions of Visual Basic .NET are released. 2002 (VB 7.0)[edit] The first version, Visual Basic .NET, relies on .NET Framework 1.0. 2003 (VB 7.1)[edit] 2005 (VB 8.0)[edit] After Visual Basic .NET 2003, Microsoft dropped ".NET" from the name of the product, calling the next version Visual Basic 2005.

To bridge the gaps between itself and other .NET languages, this version added: Visual Basic 2005 introduced the IsNot operator that makes 'If X IsNot Y' equivalent to 'If Not X Is Y'. 2008 (VB 9.0)[edit] Visual Basic 9.0 was released along with .NET Framework 3.5 on 19 November 2007. For this release, Microsoft added many features, including: 2010 (VB 10.0)[edit] In April 2010, Microsoft released Visual Basic 2010. 2012 (VB 11.0)[edit] Visual Basic .NET 2012 was released along .NET Framework 4.5. 2013 (VB 12.0)[edit] Comparative examples[edit] Criticism[edit] Less Than Dot - Wiki - VB.Net: Getting a list of network interfaces on a computer - Wiki.

How to get the MAC Address of our machine using VB .net? This article will tell you and guide you to get the MAC address of our Computer machine using VB .Net. Many of here would be looking for the solution which can help them to get the MAC address of NIC of the Computer. Yesterday I tried very hard to find the solution for this and finally found the Solution, a very simple solution of just few lines of code in VB .net. 1. Create one Class / Project in VB .net and Give some name to the Class. 2. Now before we start writing and calling actual functions from the Namespace we need to include that name space at the top of the Class.

Namespace is: 3. 4. Here is the Entire Class will look like below when you completed coding..!! So here in above code, you will get all the MAC address associated with your machine. I think this might not work on ipv6. There are some other methos as well like using "ManagementObjectSearcher" and some of the related things. I hope you like this Article and also helpful to you as well.. Enjoy!! Follow. Build Simple Network Browser. Introduction While working on SQL Server management tool for mobile devices - Siccolo, I created a simple applet to be able to browse computers on the local network within a domain and retrieve additional information (such as list of users, services). See more at Articles from Siccolo! The code presented allows to build simple network browser Download Network Browser Using the code .NET allows to retrieve almost any information about local network by using WMI - Windows Management Instrumentation - service with ManagementObjectSearcher class and in conjunction with Active Directory Service Interfaces (ADSI) - Active Directory hierarchy.

The code is broken into several methods: Get Domain Name location computer belongs to: // VB.NET // ... // VB.NET // ... How do I get a computer's name and IP address using VB.NET. Finding Out Client IP Address Using Vb.net - VB.NET. .NET Downloads, Developer Resources & Case Studies | Microsoft .NET Framework. How To Code A Visual Basic IP Address Changer??? Visual Basic Ip Changer, VB.Net Ip Changer, VB 2008 Ip Changer. Generating Documentation for Your Visual Basic .NET Applications. Wei-Meng Lee Developer Learning Solutions January 2005 Summary: Learn how to use a freely available PowerToy to add XML documentation support to your Visual Basic .NET application and create documentation as you write your code. (17 printed pages) Contents Introduction Documenting your code is often the last thing you would do in your typical project cycle. While the importance of writing documentation has been stressed umpteen times, developers usually devote the best part of the project cycle to building new features, and then finally doing a mediocre job at the end writing the dreaded documentation.

Borrowing the popular clean as you go phrase found in a lot of kitchens, the best way to churn out top quality documentation for your project would be to document as you go. In Visual Studio .NET 2003, XML code documentation is supported in C#, but not in Visual Basic .NET. Inline Documenting Using VBCommenter Figure 1. For this example, I have defined a simple Point.

Figure 2. Figure 3.