Reviews

Conversiobot Chat Bot Review

Conversiobot Chat Bot Review

Crypto Trend Rider Review

Crypto Trend Rider Review

Articles

Column and Row Resizing

Datagridview1 Resize

The default appearance vof the DataGridView is a modest improvement over the DataGrid. But with a few quick refinements, you can greatly improve it. One problem is that the DataGridView gives a default standard width to all columns regardless of their content. As a result, the initial appearance of the bound grid in Figure 15-1 is less than perfect, with the ModelName and Description columns too small for the data they contain. Fortunately, you can use some powerful automatic resizing...

Using the DirectX Caps Viewer Tool

Musical Elements Structure

The DirectX Caps Viewer tool is one of the first utilities you should learn how to use after installing the DirectX SDK on your system. The data provided by this utility can save considerable time in locating hardware- and driver-related problems on your system. In fact, this is a tool that every administrator should learn how to use as well. The following sections discuss how you can use the DirectX Caps Viewer tool to improve the DirectX development experience. An Overview of the DirectX Caps...

Handling Changes to the OLE Container Control

Vb6 Containers

The OLE Container control is used to dynamically add objects to a form at run time. For example, you can use an OLE Container to create a control that contains an embedded Microsoft Word document, create a control that contains a linked Word document, or bind to an OLE object in a database. Visual Basic .NET does not support the OLE Container control. As a result, the upgrade wizard is unable to upgrade an OLE Container control. Instead, it replaces the control with a red label to highlight the...

Building a Reusable Data Access Library

As you have just seen, the ExecuteReader method extracts a data reader object that allows you to examine the results of a SQL Select statement using a forward-only, read-only flow of information. However, when you wish to submit SQL commands that result in the modification of a given table, you will call the ExecuteNonQuery method of your command object. This single method will perform inserts, updates, and deletes based on the format of your command text. Note Technically speaking, a nonquery...

Dynamic Crystal Reports

Viewer Crystall Report 2008 Net

There are two ways to create Crystal reports dynamically using preset columns and using the Crystal SDK. Both have their advantages and disadvantages, which you learn in the sections that follow. Using preset columns is the easier way to create a data-driven Crystal report. It's also cruder. By creating a report file and binding it to a typed DataSet with, say, ten columns, you can bind up to ten selected data elements chosen by the user. You need to create ten parameter fields as well to serve...

The Collapsible Panel Control

Collapsible Panel Windows Forms

The last control you'll consider is a Windows XP standby that's finally available in the .NET world. It's a CollapsiblePanel developed by Microsoft and designed to mimic the Windows XP common task pane, which is shown on the side of many standard windows see Figure 12-7 . Figure 12-7. The common task pane in Windows XP Figure 12-7. The common task pane in Windows XP This panel has several noteworthy features It supports Windows XP themes, giving it a slick look with a detailed gradient...

Using Active Directory with DNN

Dnn Authentication Provider

As we saw in Chapter 2, Managing Users and Site Setup, DNN comes with built-in user security with roles and grants. This is fine in many cases, but sometimes your DNN site is located on a network that already has Active Directory AD security. How can you configure a DNN portal to use the existing security and not have to recreate all the AD users The answer is to add the Active Directory Authentication provider to work along with the DNN security provider. In this way you can log in with user...

Case Study Writing a DTD for the Day Planner Application

In this section, we build upon the case study introduced in Chapter 5. Figure 6.15 lists the external subset of the DTD for the day planner XML document, planner.xml. The following document type declaration is inserted into the day planner XML document lt DOCTYPE planner SYSTEM planner.dtd gt 1 lt -- Fig. 6.15 planner.dtd -- gt 2 lt -- DTD for day planner -- gt 4 lt ELEMENT planner year gt 6 lt ELEMENT year date gt 7 lt ATTLIST year value CDATA REQUIRED gt 9 lt ELEMENT date note gt 10 lt...

XAML Browser Applications XBAPs

While we're talking about Visual Studio tools for WPF, you may notice that a few icons away from the Windows Application (WPF) project template is another one called XAML Browser Application (WPF), as shown in Figure 1-8. Figure 1-8. The WPF XAML Browser Application project template in VS05 Figure 1-8. The WPF XAML Browser Application project template in VS05 WPF itself was created as a unified presentation framework, meant to enable building Windows applications with the best features from...

Upgrading the Printer Object

In Visual Basic 6.0, the Printer object enables applications to communicate with a system printer. The Printer object contains functions for printing text, lines, and images. However, the printing model in the .NET Framework is quite different from that in Visual Basic 6.0. The Printer object has become obsolete. Fortunately, the functionality of the Printer object can be achieved with the classes that are provided in the System.Drawing.Printing namespace, particularly the PrintDocument class....

Direct DrawCreate and Direct DrawCreateEx

There are two functions you can use to create a DirectDraw object if you don't want to use the pure COM method DirectDrawCreateO and DirectDrawCreateEx . The latest version of the DirectX API supports both methods, but Microsoft recommends using the DirectDrawCreateEx function because it returns an object with full Direct3D support. The DirectDrawCreateO function provides support for 2D drawing only. Both functions require a globally unique identifier GUID as input for the first argument. The...

Automatically Starting in a Debugger Image File Execution Options

Some of the hardest types of applications to debug are those started by another process. Windows services and COM out-of-process servers fall into this category. In many cases, you can use the DebugBreak API function to force a debugger to attach to your process. In two instances, however, using DebugBreak won't work. First, in some cases, DebugBreak won't work with Windows services. If you need to debug the service startup, calling DebugBreak will get the debugger to attach, but by the time...

Overview of Power Toys for NET CF

In a nutshell, the Power Toys for .NET CF 3.5 package is a set of tools commonly used to gauge application performance and collect diagnostic information for applications developed on .NET CF 3.5. The following table lists down each tool in the package and what it does. Remote Performance Monitor and GC Heap Viewer The Remote Performance Monitor allows you to capture and view performance statistics in real time while your mobile application is running. The GC Heap Viewer allows you to capture...