|
|
|
|
|
Total Hits: 43 | Today: 0
|
Author: Igor Tkachev.
|
Rating:
|
|

The System.Reflection.Emit namespace provides classes to create dynamic assemblies at runtime. It allows compilers and tools to emit MSIL, execute it and store it to a disk. Although Emit is a powerful tool, it is also extremely hard to use....
|
|
|
|
Total Hits: 239 | Today: 0
|
Author: Mike Gunderloy
|
Rating:
|
|

Microsoft .NET provides several ways to think of your code as more than just a bunch of disconnected lines. As a Visual Basic programmer, you're already familiar with the concept of a class, a section of code that defines an object and its behavior. But two of the higher-level groupings may be unfamiliar to you: 1.An assembly provides a fundamental unit of physical code grouping. 2.A namespace provides a fundamental unit of logical code grouping. As you'll see in this document, you can u...
|
|
|
|
Total Hits: 103 | Today: 0
|
Author: Ted Pattison
|
Rating:
|
|

Visual Basic .NET is the result of a significant rebuild of Visual Basic for the Microsoft .NET Framework. There are a number of changes that make Visual Basic .NET easier to use, more powerful than Visual Basic 6.0, and give it the kind of access to system resources that in the past required the use of languages like C++. One of the most important additions is object inheritance. In Visual Basic .NET, all managed types derive from System.Object. An important new language feature is garbage coll...
|
|
|
|
Total Hits: 527 | Today: 0
|
|
Rating:
|
|

This does a reverse lookup and displays the IP address of a given host. The resulting IP address will be displayed in a MessageBox....
|
|
|
|
Total Hits: 289 | Today: 0
|
|
Rating:
|
|

This function will return the program that is associated with the passed in extension....
|
|
|
|
Total Hits: 76 | Today: 0
|
Author: Doug Hennig
|
Rating:
|
|

New to Sedna, Visual FoxPro emulates the My namespace first introduced in Visual Basic 2005. The My namespace makes .NET Framework classes more discoverable and allows you to write less code. Sedna, the next version of Visual FoxPro (VFP), includes a My namespace as well, for the same reasons. In this article, I’ll look at how Sedna implements My....
|
|
|
|
Total Hits: 1017 | Today: 0
|
Author: Aadil
|
Rating:
|
|

This article will show how to enumerate all the processes executing in VB.NET. The System.Diagnostics namespace contains classes that you can use to find out about the processes currently executing. You can find a lot of information about these processes, you can find the number of threads spawned by each of the process, the Win32 handle id, the virtual memory occupied, time passed since the process started etc. All of this information is contained in a class called Process. You can get an...
|
|
|
|
Total Hits: 208 | Today: 1
|
Author: Dan Mabbutt
|
Rating:
|
|

One of the big changes in software, and especially in the move up from VB 6 to VB.NET, is the ability to build globalization into your code! In a recent article about resource files in Visual Basic, I wrote, "Microsoft has heard clearly heard the jingling clink of Rupees, Euros, Yen, and Kroner in .NET." Resource files are one way that you can make your code available to people speaking different languages, but theres a lot more to it than that. In this article, I'm going to show you the code yo...
|
|
|
|
Total Hits: 809 | Today: 0
|
|
Rating:
|
|

To find your IP address we first ask for your machine name, then we pass that to the GetHostName function that gives us a valid IPHostEntry object. This object contains your IP address in the AddressList array, so we just dump the value to the console....
|
|
|
|
Total Hits: 1175 | Today: 0
|
|
Rating:
|
|

This code will locate each machine on your network and will report the name and IP address of each. This dynamically adds textboxes to the form to show each one in, so if your network is large you will want to modify it to display in a listbox or something else....
|
|
|
|
Total Hits: 447 | Today: 0
|
|
Rating:
|
|

Create a new form and add a Button to it called Button1. Add this code then delete, modify, rename or create a file in your c:\ directory. The application will write the change to the output window....
|
|
|
|
Total Hits: 826 | Today: 0
|
|
Rating:
|
|

a Simple File Processing From WebSite....
|
|
|
|
Total Hits: 3022 | Today: 0
|
|
Rating:
|
|

Adding objects is simple just use the add method...
|
|
|
|
Total Hits: 774 | Today: 0
|
|
Rating:
|
|

It's always valuable to boil a problem down to it's simplest form, so here is the boiled down SMTP Mail solution:...
|
|
|
|
Total Hits: 360 | Today: 0
|
|
Rating:
|
|

Most of us already know about the wide array of languages the .NET Framework supports. We also know that we can code assemblies that make up projects using different languages. Something that we might not be so aware of is, coding one assembly using more than one language....
|
|
|
|
Total Hits: 70 | Today: 0
|
Author: Rachael Schoenbaum ,Scott Mitchell
|
Rating:
|
|

An enumeration is a special type in the .NET Framework that is comprised of a number of named constants. While you might not have created an enumeration type yourself, you have likely used enumerations many times in day-to-day programming. For example, each item in an ASP.NET DataGrid has an ItemType property, which is of type ListItemType. ListItemType is an enumeration with values like Header, Item, AlternatingItem, Footer, and others. Too, if you've created files with the System.IO.File class...
|
|
|
|
Total Hits: 130 | Today: 0
|
Author: Dan Fox
|
Rating:
|
|

The .NET Framework includes a set of cryptographic services that extend the services provided by Windows through the Crypto API. In this article, the author explores the System.Security.Cryptography namespace and the programming model used to apply cryptographic transformations. He discusses reasons why cryptography is easier in .NET than it was before, including the easy programmatic acccess developers have to the cryptography APIs and the difference between symmetric and asymmetric algorithms....
|
|
|
|
Total Hits: 530 | Today: 1
|
Author: Rockford Lhotka
|
Rating:
|
|

In recent weeks, I have encountered a number of people writing Visual Basic® .NET applications that use TCP sockets, to create host or client applications. Most have done this in Visual Basic 6 with the Winsock technology, and many struggle to achieve similar results in Visual Basic .NET because the underlying technology for working with sockets has changed in the .NET world. This is an interesting topic to address because we get the opportunity to explore not only socket-level programming in Vi...
|
|
|
|
Total Hits: 395 | Today: 0
|
Author: Rockford Lhotka
|
Rating:
|
|

Rocky Lhotka dives into the interfaces supporting collections as he shows how to implement a wrapper class to sort collections that don't support sorting. Collections are widely used throughout the .NET Framework and our applications. If you use object-oriented (OO) designs you almost certainly create and use collections. Even if you don't use pure OO designs, you probably at least use pre-existing collections. One problem I constantly face with collections is that most collections are not sorta...
|
|
|
|
Total Hits: 1088 | Today: 0
|
|
Rating:
|
|

To add items to the Queue you use Enqueue method. This method takes an object of any type but to keep things simple lets just give it a string object....
|
|
|
|
|
|