VB.NET 2005
Visual Basic (VB) is a programming language based on the original DOS language called BASIC (Beginners’ All-purpose Symbolic Instruction Code). VB.NET 2005, an offshoot of Visual Basic, is an object-oriented programming language based on VB that is implemented using the Microsoft .NET framework. The basic syntax of the Visual Basic language remains unchanged in VB.NET 2005, but includes additional features such as structured exception handling and short circuited expressions to enhance the infrastructure of the programming language.
Developers have found VB.NET to be controversial as some of the software and developmental changes clash with the original language within VB and have caused compatibility issues. Visual Studio .NET is the predominant integrated development environment (IDE) that VB.NET developers employ.
Visual Basic programmers supporting VB.NET indicate that language constructs and user interface features in the newer system have caused programming issues within the original VB system. Developers using VB.NET recognize that the upgraded VB system incorporates contemporary object oriented programming paradigms in a more stable environment than was originally thought possible.
Visual Basic .NET is a programming language that can be used to create winforms or webapp applications and create programming based in any object-oriented programming language (OOP), ADO.NET, Multithreading or Windows Services. VB.NET programming utilizes concepts connected to string encryption, forms inheritance, regular expressions and deployment.
VB.NET 2005 Free Training We are exited to let you know that we will be starting Visual Basic .NET 2005 Training. Please find the topics below which we will be covering during the course. This training is based on the latest Visual Basic .NET 2005 version. Visual Basic .NET 2005 Training 1. .NET Framework architecture The .NET Framework Architecture Part 1 The .NET Framework Architecture Part 2 Application Class and Message Class Implementing Class Library Object Visual Studio.NET Namespaces .NET Assemblies Differences between VB.NET 1.0 and VB.NET 2.0 2. Introducing Windows Forms Introducing VB.NET Windows Forms Visual Studio Windows Forms…
This is the first tutorial as part of the Visual Basic .NET 2005 Training. In this tutorials we will be learning about the basics of The .NET Framework Architecture, The .NET vision, Common Language Runtime (CLR), .NET Framework Class Library and Microsoft Intermediate Language (MSIL). It’s very important to learn the basics before we actually start with the Programming. The .NET Vision The .NET framework is a software technology that is directed towards connecting information, people, systems and devices seamlessly. The high level of software integration that has been attempted through use of XML web services enables the creation of…
VB.NET 2005 Free Training : The .NET Framework Architecture Part 2. In this tutorial of The .NET Framework Architecture Part 2 we will learn about Just-In-Time (JIT) compilation, Assemblies, native assemblies, Global Assembly Cache (GAC) and Comparison of VB.NET, C#, and J#. Just-In-Time (JIT) compilation As stated above, the Just in time compiler is a facility that is invoked by the CLR to convert the IL into machine code. The .NET framework assemblies (*.dll or *.exe) files cannot be executed by the target processor unless it is converted into native code. When the Assembly is loaded the method calls are…
VB.NET 2005 Free Training: Differences between VB.NET 1.0 and VB.NET 2.0: VB.NET 2005 comes with a number of enhancements. The IntelliSense Code snippets, the Windows Forms designer updates, IntelliSense filtering, debugger data tips, exception Assistant etc make the software a pleasure to work with. The language has been spruced up with generics, unsigned types, Operator overloading etc. The My Namespace is the most significant enhancement that provides a single reference to commonly used functionalities within the .NET framework. It includes classes like Application, Computer, Forms, Resources, Settings and Users. This enables users to ping a computer with a simple line…
Introducing VB.NET 2005 Windows Forms We will be learning in the next series of articles as part of VB.NET 2005 Free Training : Introducing Windows Forms in the following topics with code samples and screen shots. Introducing Windows Forms Designing Windows Application is simpler and less time consuming with Visual Basic 2005. A number of new facilities and enhancements have been made to assist the developer complete the project in time and with lesser number of errors. Windows Form is the cynosure of the Windows Application. Visual studio 2005 packs more features to the already enriched area of Windows Forms,…
Implementing Class Library Object in VB.NET 2005 Class: Classical Object Oriented Concepts explain a class as a cookie cutter. A class allows you to create objects of the class. As a programmer you define a class with data fields, properties, methods and events. Then you can create objects based on that class that have state (fields, properties) and behavior (methods, events). A class can be considered as a specification of how the object of the class should look like and behave. An object of the class is nothing other than a sequence of bytes at a specific memory location in…
Introduction and Implementing Inheritance The usefulness of inheritance is depnding on the choice of its usage. You can use inheritance if the derived class is a kind of base class but not has a relationship with the base class. Such a situation empowers you to reuse the code from the base class. It is also more useful if the hierarchy is very shallow. The developer can effect global changed to the derived class by changing the base class. Understanding Inheritance Inheritance is an important feature of any OOP Language. Let us examine the following lines of code: Public Class DemoForm…
Visual Studio.NET Namespaces The .NET Framework class library has thousands of classes which are needed for developing and deploying solutions. In order to organize all those classes for ease of use .NET Framework uses namespaces. This Gives the Classes their own space and prevents conflicts between the various names in these classes. For instance if two classes contain a method Paint(), then to avoid conflicts in names we can place these classes in two different namespaces. Thus namespaces allow classes to be grouped in a consistent, hierarchical manner. The writing convention is that the word after the right–most dot is…
Using The System.Windows.Forms.Form class System.Windows .Forms.Form class is the foundation class for all forms to be created. All the forms that are created in VB .NET are also inheriting from this base class. This class provides for all the facilities needed for the form. Additional functionality can be added by separate codes. In the .NET Framework, a number of new features have been added to the Form Class and the Controls. We shall see some of the new features quickly. For most detailed information is available in the Microsoft website. We will see some of the members that have been…
VB.NET 2005 Free Training Exploring the Forms Designer generated code As you create a new project in the Visual Basic, the IDE generally automatically adds lots of lines of code on its own. Visual Basic 2005 comes with an option to skip over this behavior of the Visual Basic IDE. The default option comes with this behavior enabled. These codes are introduced with an aim that the user can continue to use the form without bothering about write codes to instantiate the form with a function new() and also the code includes the declaration and instantiation of all the controls…
Using Application Class Visual Basic 2005 introduces a speedy way to access many important classes relating to the Computer on which the application is running, the user running it, the application itself, its forms and any associated web services. The best part of it all is that you can access it all using the new My object. The new My object has added features that help the programmer to gain access to some functionality that was really hard to achieve. My.Application Object contains information about running application, such as the title, working directory, version, and the common language runtime (CLR)…
Setting and Adding Properties to a Windows Form In this tutorial we wil leran about Setting and Adding Properties to a Windows Form, Using the Visual Designer to set Windows Form Properties, Setting Windows Forms Properties programatically and Using Visual Inheritance along with the sample project and screen shots. Using the Visual Designer to set Windows Form Properties The properties of the Widows properties can be edited in the properties window visually. Both the inherited properties and also those added in the current class can be edited using the property window. If this window is not visible, you can click…
Introduction to Event Handling One of the most useful capabilities of the OOP Languages is their inbuilt ability to be aware of a large number of events like MouseOver, MouseClick, and so on so that we can write codes to react to any event that we are interested. This is made possible by the rich set of classes that have been built in the .NET Framework The events handling is very simple as we have seen in the previous example where buttonClicked event is handled by the following code: Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles…
Building graphical interface elements by using the System.Drawing namespace In this tutorial we will learn about Graphics Object, The Windows Forms Coordinate System, Drawing Text on a Form, Drawing Shapes and Working with images. Understanding The Graphics Object Graphics handling in Visual Basic .NET is based on GDI+ (Graphics Device Interface). A graphics device interface allows you to display graphics on a screen or a printer without having to handle the details of a specific display device. All that you need to do is to make calls to methods supported by the GDI+ classes and those methods make…
Visual Studio Adding Controls In this tutorial let’s discuss about Adding Controls to a Windows Form, Adding Controls using Windows Forms Designer, Adding Controls Dynamically and Setting properties of Controls. Sample source codes used in this tutorial are included. Forms are containers for control objects. All controls have properties, methods and events that can be used to customize their functionality. Controls can be manipulated in the designer mode and code can be added to dynamically add controls at run time. Adding Controls to a Windows Form Controls are basically groups of classes that help the Visual Basic developer create interfaces…
Common Controls and Handling Control Events In this tutorial we will be learning how to use common control like Control Hierarchy, Label and LinkLabel, TextBox and RichTextBox, PictureBox, GroupBox and Panel, Button, CheckBox and RadioButton, ListBox, CheckedListBox and ComboBox, DomainUpDown and NumericUpDown, MonthCalendar and DateTimePicker, TreeView and ListView, Timer, TrackBar and ProgressBar, HScrollBar, VScrollBar, TabControl and Handling Control Events. All controls are governed by the Control Class “System.Windows.Forms” Namespace. This class handles the entire basic window handle (HWND) functionality such as the creation and destruction of windows handles. When Control and Rich Control are integrated VB.NET provides for greater functionality….
Dialog Boxes in Visual Basic .NET Most Windows applications request for user input. Dialog boxes are one means of requesting users for specific kinds of inputs. Therefore, VB.NET allows its designers to create a number of different types of dialog boxes. Standard Dialog boxes are included in classes that fall within the purview of the CommonDialog. FileDialog ColorDialog FontDialog PageSetupDialot PrintDialog Let us now briefly study the features of the CommonDialog boxes OpenFileDialogClass This class provides users with the file selection capability. The properties and methods of this dialog boxes are given below: Property or Method Description ShowDialog Displays the…
.NET Common Windows Forms Controls In this tutorial we will learn about Common Windows Forms Controls in Visual Basic .NET 2005. IN this part 1 of this article, We will be learning the controls like Control Hierarchy, Label, LinkLabel, TextBox, RichTextBox, PictureBox, GroupBox, Panel, Button, CheckBox , RadioButton, ListBox, CheckedListBox and ComboBox.Control Hierarchy The base class for all Windows controls is located in the System.Windows.Forms namespace. These controls are built into the .NET framework and form the basis for derived controls. These controls have a distinct hierarchy of their own. For example the hierarchy of the control rich text box is…
DomainUpDown and NumericUpDown Controls DomaiUpDown The windows Forms System.Windows.DomainUpDown control looks like a combination of a text box and a pair of buttons for moving up or down through a list. This control displays and sets a text string from a list of choices. You can select the string by clicking up and down buttons to navigate through a list. Alternatively you can press the UP and DOWN Arrow keys or just type a string that matches an item in the list. You can use this control to select items from an alphabetically sorted list of names. This controls functions…
.NET Common Windows Form Controls part 2 In this tutorial we will learn about Common Windows Forms Controls in Visual Basic .NET 2005. In this part 2 of this article, We will be learning the controls like Control MonthCalendar and DateTimePicker, TreeView and ListView, Timer, TrackBar and ProgressBar, HScrollBar and VScrollBar, MonthCalendar MonthCalendar is a very useful tool that has been added to the .NET Framework. Let us see how this works with an example. In a new project add a textbox and a command box to the form and also date time picker. In the code window add the…
Creating Menu and Menu Items In this tutorial we will learn about Creating Menu and Menu Items – Main Menu, Context Menu, StatusBar and ToolBar. Main Menu Windows users are familiar with Menu objects. The MainMenu control represents the container for the menu structure of the form. Menus are made up of MenuItem objects that represent the individual parts of a menu. You can add submenus to menus that will pop up when the user clicks an arrow in the menu item, display check marks, create menu separators, assign shortcut keys to menu items , even draw the appearance of…
Creating Multiple-Document Interface (MDI) Applications In this tutorial you will learn about Creating Multiple Document Interface (MDI) Applications. Creating Multiple-Document Interface (MDI) Applications In most real time applications we often find that multiple windows open within another window. This kind of need is satisfied by implementing Multiple Document Interface (MDI) Applications. You can create a class and designate it as a MDI window by setting its IsMDIContainer Property as true. Set the value for WindowState as maximized. This can be done by editing the property sheet. You will see that the color of the form changes as can be…
VB.NET Validation Controls In this tutorial you will learn about User Input Validation, Required Field Validators, Comparison Validators, Range Validators, Regular Expression Validator, Custom Validators, ErrorProvider, Enabling Controls Based On Input and Other Properties of Validation. User Input Validation While any application can be designed with sound logic and good technology and can deliver high performance with accuracy, some errors could still creep into it. This could be due to wrong inputs by users. While the programmer may have taken care of all the exceptions it could cause a loss of business goodwill if a customer is confronted with an error…
.NET Exceptions In this tutorial you will learn about Exceptions, Common Exceptions, Handling Exceptions – Try Block, Catch Block, Throw Statement, Finally Block, Salient points about error handling Custom Exceptions – Managing Unhandled Exception Exceptions Abnormal conditions can become obstacles in the execution of very good programs. These conditions may force the program to breakdown, or halt or just go into a limbo. The Network connection may snap or a printer may run out of paper. No programmer can foresee these problems, yet he must give the user an option to gracefully save the work done up to the point and…
Creating and Managing Components Part 2 In Section 2 of Creating and Managing Components You will learn about Hosting a control inside Internet Explorer, HTMLAnchor Control, HTMLButton Control, HTMLGeneric Control, Creating Components by extending the Control class, Creating a custom control and Creating components by extending the Component class. Hosting a control inside Internet Explorer ASP .NET server controls are group of new controls provided by .NET. They are of different kinds. HTML Server controls, Web Server controls and Validation controls are the other types. These controls derive from System.Object -> System.Web.UI.Control -. HtmlControl. . . . . . ….
VB.NET Creating and Managing Components Part 1 In this tutorial you will learn about Components, Best practices in using Components, Creating Components by extending the UserControl Class, Testing the Control, Creating and implementing Events, Extending a control through Visual Inheritance and Inheriting from a UserControl. A component is a reusable piece of code in binary form. This code can be reused by inheritance. No class is being inherited. It follows that a containment relationship is defined between the application using the component and the component that is being used. This is different from the relationship that exists between a derived…
Creating and Managing .NET Assemblies Single-file and multi-file assemblies, Combining modules written in different languages, Creating a multi-file assembly, End Namespace, Static and dynamic assemblies, Private and shared assemblies, Sharing an assembly, Satellite and Resource-only assemblies, Compiling Satellite Assemblies, Compiling Satellite Assemblies With Strong Names, Obtaining the Public Key, Delay Signing an Assembly, Re-signing an Assembly, Installing a Satellite Assembly in the Global Assembly Cache, Resources in Applications, Creating and Localizing Resources and Packaging and Deploying Resources Single-file and multi-file assemblies A single-file assembly is the simplest of all the assemblies. It contains type information and implementation along with the…
VB.NET 2005 Tutorials: Simple Data Binding In Section 1 of Data Binding you will learn about definition of Data Binding Bindable Entities, The Architecture of Data Binding, Bind Data to the User Interface and Simple Data Binding Data Binding The process of binding a control to a data source is called data binding. Visual Studio 2005 includes several new features to assist in developing applications that access data. The Data Source Configuration Wizard simplifies connecting the application to data in databases, Web services, and user-created objects. The new Data Sources window provides a centralized view of the data available to…
In this tutorial you will learn about Complex Data Binding, Binding to a ComboBox or ListBox, Binding to a DataGrid. Complex Data Binding Complex data binding is the ability of a control to bind to more than one data element, typically more than one record in a database, or to more than one of any other type of bindable data elements. Examples of controls that support complex binding are the DataGridView, ListBox, and ErrorProvider controls. Binding to a ComboBox or ListBox In this section let us create a complex binding by using a ComboBox and a ListBox. As in the…
In this tutorial you will learn about Using the Data Form Wizard – Building a Single-Table Data Form, Transform and Filter Data, Using Server Explorer, Drag-and-Drop From Server Explorer, What the user Can and Cannot Drag from Server Explorer, Filtering Data, Filtering With DataViews, Filtering At the Server, Transforming Data with Lookups and Master Detail. Using the Data Form Wizard Building a Single-Table Data Form Adding a single table to a form using a wizard makes for ease of application development. The following example demonstrates the building of a form to display single table using a DataGrid. Building a Multiple-Table…
In this tutorial you will learn about Consuming and Manipulating Data Viz. Access and Manipulate SQL Server data – Using Ad Hoc Queries; Running Queries, The SELECT Statement, The INSERT Statement, The UPDATE Statement and The DELETE Statement. Access and Manipulate SQL Server data – Using Ad Hoc Queries Consuming and Manipulating Data Modern day enterprises deal with online transaction processing databases that need to store huge volumes of data as well as carryout database operations such as UPDATE, ADD, and DELETE or retrieve data for viewing and decision making. The emergent need is to device a software that connects…
In this tutorial you will learn about Access and Manipulate Data, Working with Disk Files, Browsing for Files, Streams and Backing Stores, Using the FileStream Class, Using the StreamReader and StreamWriter Classes, Using the BinaryReader and BinaryWriter Classes. Access and Manipulate Data – Working with Disk Files Working with Disk Files Temporary storage of data as in the illustrations above is not the optimal solution. Persistent data storage is a file having a collection of bytes and is stored as data streams. All read write operations to these data steams can be done with ease in the circumstances. In the…
In this tutorial you will learn further more about Access and Manipulate SQL Server data – Using Stored Procedures, Creating a Stored Procedure, Running Stored Procedures from .NET, Using Parameters in Stored Procedures, The @@IDENTITY Variable Access and Manipulate SQL Server data – Using Stored Procedures Using Stored Procedures Stored procedures are an important aspect in all database programs. VB.NET applications are no exceptions to this rule. Stored procedures enable users change the business logic without actually tinkering with the application. SQL Server 2005’s (formerly code named Yukon) integration with the .NET CLR makes it possible for developers to author…
In this tutorial you will learn about The ADO .NET Object Model, Data Providers and Their Objects and the Dataset Objects Access and Manipulate Data – The ADO .NET Object Model The ADO .NET Object Model ADO .NET renders very good support for working with disconnected data. ADO .NET 2.0 comes with additional features that enhance the performance of common database tasks. The data source window provides a centralized window for creating and configuring related objects required to access a date source. Smart tags added to the controls provide fast access to common development tasks. However all the functionalities of…
Access and Manipulate Data – Using DataSets In this tutorial you will learn about Using DataSets, Populating a DataSet From a Database, Moving Around in DataSets and Retrieving Data, Using Strongly Typed DataSets, DataSets With Multiple Tables. Populating a DataSet from a Database As already discussed DataSets do not contain any data when they are created. The user must fill the data in to the DataSet separately. We have already seen that there are several methods of filling a DataSet with data. DataSets can be created using the Visual Studio Design in which case TableAdapters are also created. Filling a…
Using XML Data In this tutorial you will learn about Using XML Data – XML Basics, Using XmlDocument Class, Treating XML as Relational Data, The Introduction, The database, Handle Data Errors – Handle Database Errors and Handling Multi-User Errors.Using XML Data XML Basics In this section we shall see some of the features of XML with reference to the .NET Framwork. Some prior knowledge of xml is required for understanding this section. The following assemblies implement the core XML standards.: 1) System.Xml -Basci Xml Input and Output with XmlReader and XmlWriter, Dom with XmlNode and its subclasses, many utility classes…
Finding and Sorting Data in DataSets In this tutorial you will learn about Finding and Sorting Data in DataSets – Filtering on Row State and Version, Sorting and Data View Manager. Finding and Sorting Data in DataSets Using the table’s Select method or the RowFilter property of a data view, the user can filter records in a data table to make available only the required records. This is useful when the user wants to work with different subsets of the records in a dataset table. To specify filter criteria, the user can use the same expression syntax used to create…
Editing Data With ADO .NET In this tutorial you will learn about Editing Data With ADO .NET – Updating Data, Adding Data, Typed data set, Untyped data set, Deleting Data, Editing with a DataGrid. Updating Data The SqlDataAdapter’s update method is called whenever the changes made to a DataSet has to be applied to the underlying table. The SqlDataAdapter is instantiated using eh SELECT statement and the compiler generates the statements for UPDATE, INSERT and DELETE. The changes made to the DataSet are then applied to the Database. However considerations for automatic update will fail if there is no primary…
Web Services – SOAP, WSDL, Disco and UDDI In this tutorial you will learn about Web Services – Understanding Web Services, Simple Object Access Protocol (SOAP), The Web Service Discovery Tool (DISCO), Universal Description, Discovery and Integration (UDDI), Web Service Discovery Language (WSDL). Web Services – SOAP, WSDL, Disco and UDDI Understanding Web Services Interconnectedness engendered by the World Wide Web has created a pressure to create applications that are interoperable and distributable over the network. The direction of effort is towards creating applications that connect to each other regardless of the language or platform in which the application was…
Instantiating – Invoking Web Services, Creating Proxy Classes with WSDL In this tutorial you will learn about Discovering Web Services, Instantiating and Invoking Web Services, Creating Proxy Classes with the Web Services Description Language Tool (wsdl.exe) VB.NET 2005 Tutorials: Instantiating – Invoking Web Services, and Creating Proxy Classes with WSDL Using the Web Services Discovery Tool (disco.exe) Now that we have created a web service, we will use the disco.exe tool to discover it. To direct the tool to locate the service the syntax to be used is as under. This command has to be entered in the .NET framework…
Creating Web Service Project In this tutorial you will learn about Creating a Web Service Project. Creating Web Services Creating a Web Service Project Purpose: To create an XML Web service project and thereby separate the functionality of the web service from the web site: 1. On the File menu, point to New, and then click Web Site. 2. In the New Web Site dialog box, select the ASP.NET Web Service icon. 3. Enter the address of the Web server on which you will develop the XML Web service. Use http//localhost to create the new site as shown in the…
In this tutorial you will learn about Using Web Reference – Adding a Web reference:, To create an ASP.NET Web application, Adding a Web Reference, Testing a Web Service, Accessing the XML Web Service and To access the XML Web service VB.NET 2005 Tutorials : Web Reference, ASP.NET Web Application and XML Web Service Using Web Reference A Web reference is a generated proxy class that locally represents the exposed functionality of an XML web service. The proxy class defines methods that represent the actual methods exposed by an XML web service. When the client application creates an instance of…
VB.NET 2005 Turorials : Testing a Web Application In this tutorial you will learn about Testing a Web Application, Configuring ASP.NET Unit Tests Using Run Configuration, Creating and Removing Run Configurations, Subsequent run configurations, removing run configuration and editing run configuration. An application is software is created to function efficiently given the necessary parameters. Developers are conscious that, even in the most efficiently created software, errors of a certain nature can occur and must be provided for at design time. Yet other errors could occur at runtime and therefore applications need to be tested and debugged at runtime too. Therefore…
Tracing and Debugging a Web Application In this tutorial you will learn how to trace and debug a web application. Tracing – Using the TraceContext class, Using Trace and Debug, Trace listeners, Trace Switches and Conditional Compilation. Debugging – you will learn setting breakpoints and conditional breakpoints, how to debug a running process and also about debugging a remote process. Tracing This class is used to append messages to specific trace categories. For example, if the developer is creating an instance of the System.Web.UI.WebControls.Calendar class for the application, he might include the trace message "Starting To Render" in a rendering…
Testing a Windows Application In this tutorial you will learn how to test a windows application, tracing, using tracing and debug to display information, code tracing and debugging, output from tracing, six debug members and trace methods, Trace Listeners, Trace Switches, Conditional Compilation and Conditional Compilation Constants. In the earlier lesson “Testing and debugging Web Applications” we learnt how to create a test plan, execute it, how to conduct a unit test, what is integration testing, regression testing and so on. In this lesson we shall examine how to test and debug a windows application. Though much of the…
Working with Legacy Code – ActiveX Control In this tutorial you will learn how to use ActiveX Control, the windows forms ActiveX Control Importer, Importing Controls with Toolbox, Using ActiveX Controls on Windows Forms and you will also learn how to use Platform Invoke. As enterprises grow in strength and reach, IT challenges loom large. All enterprises are confronted with a multitude of legacy applications that are not scaleable or in line with the applications being created for the new environment. However, these applications cannot be thrown out for various reasons. They have to be migrated and made compatible with…
Working with Legacy Code – COM Components In this tutorial you will learn to use COM Components, Understand Runtime Callable Wrappers, Type Library Importer (TLBIMP), Using COM Components Directly, Using COM+ Components and Creating Com+ Application. Using COM Components Component Object Model (COM) is a language-independent architecture that defines specifications for component interoperability. Each COM component is identified by a globally unique ID (GUID). It is a number that is unique across space and time. Implementation of COM is called ActiveX. COM objects can be compared with .NET components and ActiveX DLLs with Assemblies. This is because .NET components…
VB.NET 2005 Tutorials : Debugging a Windows Application In this tutorial you will learn how to Debug a Windows Application, Step through Program Execution, Stop Debugging or Stop Execution, Stepping Through Code, Setting BreakPoints, Analyzing Program State to Resolve Errors, Debugging on Errors, Exception Assistant, Debugging a Running Process, Debugging the Code in DLL files and Debugging a Remote Process. To debug a .NET Framework application, the compiler and runtime environment must be configured to enable a debugger to attach to the application and to produce both symbols and line maps, if possible, for the application and its corresponding…
VB.NET 2005 Tutorials Deploying Windows Applications In this tutorial you will learn how to Deploy a Windows-based Application, Create a Setup Project, Configuring Deployment Properties, Customizing a Setup Project, File System Editor, The Registry Editor, The File Types Editor, The User Interface Editor, The Custom Actions Editor and The Launch Conditions Editor A number of different methodologies for deploying Windows based applications have been available since the first version of Visual Basic. In this lesson we shall briefly discuss the different technologies available and the evolution of this technology leading up to the creation of ClickOnce. Windows Forms have traditionally…
VIB.NET 2005 Tutorials : Customizing a Setup Project Deployment projects in Visual Studio.NET allow the specification of where and how the application will be deployed on the user system. Each of the setup editors contain a file system configuration editor. The setup can sometimes include Registry configuration options and options to check special conditions. This ability to customize the installer’s user interface is a handy tool. The number of editors which can be accessed through the view menu are: File System Editor—Adds files and shortcuts, such as Start menu items, to the installation package Registry Editor—Manipulate Registry entries on the…
Visual Basic.NET 2005 Training The Registry Editor The Registry Editor is used for: 1. Creating registry keys 2. Creating values for registry keys 3. Importing a registry file. Like the File System Editor, the Registry Editor is split into two panes The left-hand pane of the editor represents the registry keys on the target computer. When a registry key is selected, two things happen: the right-hand pane of the editor will be updated to show the values that are to be created under the selected registry key, and if the registry key selected is not a root key in the…
VB.NET 2005 Tutorials : Testing a Windows Application In this tutorial you will learn how to Test a Windows Application, Creating Unit Tests, Generating an ASP.NET Unit Test, benefits of unit testing, Integration Testing, Different approaches to Integration Testing, Regression Testing, goals of regression testing and Testing International Applications. Testing An application is software is created to function efficiently given the necessary parameters. Developers are conscious that, even in the most efficiently created software, errors of a certain nature can occur and must be provided for at design time. Yet other errors could occur at runtime and therefore applications need…
VB.NET 2005 Tutorials : Tracing a Windows Application In this tutorial you will learn about Tracing, Using Trace and Debug to display information, Code Tracing and Debugging, Output from Tracing, The six Debug Members and Trace Methods, Trace Listeners, Types of predefined Trace Listeners, Trace Switches, Conditional Compilation and Conditional Compilation Constants. Tracing As explained earlier, Tracing is a method of monitoring the execution of the application while it is running. Tracing and debugging instrumentation can be added to the .NET application when it is being developed, and that instrumentation can be used both while developing the application and after…
The File Types Editor The File Types Editor can be used to create the required registry to establish a file association for the application being installed. A file association is simply a link between a particular file extension and a particular application. For example, the file extension .xls is normally associated with Microsoft Excel. Add and Delete Document Types and Associated File Extensions in the File Types Editor. The File Types Editor can be used to specify document types and file extensions that will be associated with your application when it is installed on a target computer. Once installed, the…
VB.NET 2005 Tutorials : Shared Assembly In this tutorial you will learn about Shared Assembly, how to Assign Strong name to an assembly, Microsoft Windows Installer 2.0, Using the Global Assembly Cache tool (Gacutil.exe), Removing an Assembly from the Global Assembly Cache, Referencing an Assembly from Global Assembly Cache, Creating a Setup project for distributing components and Creating a new merge module project. Shared Assembly Shared Assembly can be shared amongst several different applications that reside on the same server. This type of assembly can be used in situations where it is not necessary to install a version of an…
VB.NET 2005 Tutorials : Creating Installation Components In this tutorial you will learn how to Create installation components, Work with predefined Installation Components, Deploying an Assembly containing the Installation Components, Working with Installer Classes, URL Remoting, Launching a Remote Application, The Download Cache, Code Access Security Policy and Methods of Deployment Creating installation components Understanding the Installer Class Installer class is the base class for all custom installers in the .NET Framework. Installers are components that assist in installing applications on a computer. The steps that must be followed to use the installer class are given below: 1. Inherit the…