|
Control what happens when an unhandled exception occurs
|
Total Hit (3078) |
By default, when an unhandled exception occurs in a managed application, a dialog box appears that asks you whether you want to debug the application with one of the debuggers that are listed in a listbox. (Notice that Windows Forms applications display a different dialog box.)
The behavior of th
....Read More |
Rating
|
|
|
How to configure control licensing
|
Total Hit (3034) |
The .NET Framework has a licensing model identical for all types of components and
controls that is fully compatible with the licensing rules used for ActiveX controls.
Developing and Implementing Windows-Based Applications with Microsoft Visual Basic .NET and Microsoft Visual Studio .NET
Licensi
....Read More |
Rating
|
|
|
Singleton Design Patten in VB.NET
|
Total Hit (2889) |
The Singleton pattern ensures that only one instance of a class is created. All objects that use an instance of that class use the same instance. This is the most common design pattern, and easy to implement, but very powerful when used properly.
|
Rating
|
|
|
App.Path in VB.NET
|
Total Hit (3224) |
The APP Object no longer exists in VB.NET, so calling App.Path to get the location of your application does not work. Thankfully there are many other ways to do this in VB.NET, here are a few.
NOTE: Some of these will only work for forms and not DLL's without any UI. The first two that reference
....Read More |
Rating
|
|
|
|
|
All about .NET Assemblies, GAC, Manifests and Deployment
|
Total Hit (3517) |
A .NET application is composed of three primary entities: assemblies, modules and types. An Assembly is the primary unit of deployment. The individual files that make up a .NET application are call modules. Types are the basic unit of encapsulating data and behavior behind an interface composed of
....Read More |
Rating
|
|
|
How to determine Application Path in .net?
|
Total Hit (3680) |
In Visual Basic 6 you could use App.Path to see where your application's executable resides.
In VB.NET you need to use the Application object and its ExecutablePath property to get the path for the executable file that started the application, including the executable name:
Dim aPath As Strin
....Read More |
Rating
|
|
|
|
How Do I...Create an assembly with a strong name?
|
Total Hit (1059) |
Assemblies can be assigned a cryptographic signature, called a strong name, which provides name uniqueness for the assembly and prevents someone from taking over the name of your assembly (name spoofing). If you are deploying an assembly that will be shared among many applications on the same machin
....Read More |
Rating
|
|
|
How Do I...Work with the global assembly cache?
|
Total Hit (1126) |
The global assembly cache is a machine-wide store used to hold assemblies that are intended to be shared by several applications on the machine. The .NET Framework provides two tools for working with the cache. One is a Windows shell extension that allows you to work with the cache using a Graphical
....Read More |
Rating
|
|
|
How Do I...Change the search path for private assemblies?
|
Total Hit (1853) |
Private assemblies are assemblies that are visible to only one application. The .NET Framework enables developers to build applications that are isolated from changes made to the system by other applications. Private assemblies must be deployed in the directory structure of the containing applicatio
....Read More |
Rating
|
|
|
How Do I...Use Assembly Version Policy?
|
Total Hit (1085) |
A primary goal of the deployment system in the .NET Framework is to eliminate conflicts between applications caused by shared components and shared states (or DLL conflicts). A key solution to this problem is a robust versioning system. The .NET Framework records information about an application's d
....Read More |
Rating
|
|
|
How Do I...Create a Publisher Policy Assembly?
|
Total Hit (1034) |
A Publisher policy statement describes the compatibility of an assembly issued by the publisher of that shared assembly. See How Do I...Use Version Policy" to see how a publisher's policy statement fits into the overall .NET Framework version policy scheme. Publisher policy is commonly used in servi
....Read More |
Rating
|
|
|
How Do I...Get the types in an assembly?
|
Total Hit (1080) |
This sample illustrates how to retrieve all the types for a given assembly. To look through the types of an assembly, you first need to identify the assembly you want to manipulate. Once you have an object reference to the assembly of interest, you can call the GetTypes method on that assembly, whic
....Read More |
Rating
|
|
|
How Do I...List all the members of a type?
|
Total Hit (1166) |
This example lets you list the members for a given data type. The ability to list a type's members is a great way to quickly discover which elements are available. It is an important tool for reporting on your system as well as assisting in the development of user documentation. Using the Reflection
....Read More |
Rating
|
|
|
How Do I...Invoke methods using reflection ?
|
Total Hit (1775) |
This sample illustrates how to invoke different kinds of methods through reflection. Because the names of the methods being invoked are stored in strings, this mechanism provides the capability to specify methods to be invoked at runtime, rather than at design-time, providing the scope to give your
....Read More |
Rating
|
|
|
How Do I...Catch an Exception?
|
Total Hit (2176) |
This sample illustrates how to catch an exception. A try...catch...finally block is used in this sample. Any code that might throw an exception is placed inside of the try block. If an exception is thrown, the catch block is entered and the program can perform the appropriate operation to recover or
....Read More |
Rating
|
|
|
How Do I...Throw an Exception?
|
Total Hit (1476) |
This sample illustrates how to throw an exception. A try..catch..finally block is used in to illustrate to use and catch the exception you threw. It is important to remember that when you throw an exception, you need to document the exception you throw, so that users are aware they need to include a
....Read More |
Rating
|
|
|
How Do I...Format basic types?
|
Total Hit (2583) |
This sample illustrates how to format base data types for display. Traditionally, formatting the user can see, such as brackets and the dash in a phone number, has not been viewed as the kind of information you want to store in a permanent datastore. The formatting provided in these demonstrations e
....Read More |
Rating
|
|
|
Using Message Queing in .NET applications
|
Total Hit (1417) |
Message Queing provides asynchronous programming model for your applications. For distributed and internet applications whene immediate response is not required from the actual server message quing can be used. This makes your application robust as message delivary is guranteed even if the remote se
....Read More |
Rating
|
|
|
Introduction to .NET Reflection
|
Total Hit (1292) |
Reflection is ability to find information about types contained in an assembly at run time. Prior to .NET languages like C++ provided such ability in a limited sense. .NET provides a whole new set of APIs to introspect assemblies and objects. All the APIs related to reflection are located under Syst
....Read More |
Rating
|
|
|
Building Reusable Components in .NET
|
Total Hit (2267) |
One of the main advantages of building components is to promote reusability. For example, if you build a object that represents an invoice, there could be many other projects in your company that can reuse the same object. This concept of re-using components in various projects promotes what is call
....Read More |
Rating
|
|
|
Defining Types
|
Total Hit (1300) |
Visual Basic .NET is usually described as an object-oriented programming language. This encourages us to think about our programming in terms of objects. During object-oriented analysis and design, then, we identify the most important objects in our system, and consider how they relate to each other
....Read More |
Rating
|
|
|
How the System Deals with Text
|
Total Hit (2020) |
This chapter describes how text is used in a typical computer operating system. Specific descriptions are given of how text is used in Visual Basic .NET. This chapter will show some examples to set the context of how text processing was performed before Visual Basic .NET and the .NET Framework. With
....Read More |
Rating
|
|
|
Object Syntax Introduction
|
Total Hit (1910) |
From the publisher: "In this book, we cover VB.NET virtually from start to finish: we begin by looking at the .NET Framework, and end by looking at best practices for deploying .NET applications. In between, we look at everything from database access to integration with other technologies such as XM
....Read More |
Rating
|
|
|
Building Objects : Sample Chapter from Beginning Visual Basic .NET
|
Total Hit (1263) |
In the time you've been using computers, you may well have heard the term, object-oriented. You may also have heard that it's a scary subject and tricky to understand. Whilst this was true about ten or fifteen years ago, today, object-orientation (or OO) is a wonderfully easy-to-understand concept t
....Read More |
Rating
|
|
|
.NET Overview - sample chapter from Introducing .NET
|
Total Hit (1396) |
This first chapter will summarize many of the most important aspects of .NET. We'll start by looking at some of the serious drawbacks of current software development that prompted Microsoft to rethink their entire development structure. Then we'll progress to an overview of the overall vision and th
....Read More |
Rating
|
|
|
|
Visual Basic .NET Internals
|
Total Hit (1344) |
The Microsoft .NET Framework has opened a new world for Visual Basic developers. Visual Basic .NET combines the power of the .NET Framework and the common language runtime with the productivity benefits that are the hallmark of Visual Basic. Although the Visual Basic .NET language looks the same on
....Read More |
Rating
|
|