|
12/28/2004 Article:
ADO.NET � Select DataRows Into a New DataTable
An ADO.NET question that comes up often in .NET forums is: �How do I
select rows from a DataTable into a new DataTable?�, and the related
question: �How can I select a subset of a DataTable into a new
DataTable?�. This article discusses some solutions.
|
|
12/8/2004 Article:
Introduction to the VB.NET �Like� Operator
This article discusses the VB.NET �Like� operator compares a string
to a pattern returning True if the pattern is found in the string or False if
the pattern is not found in the string.
|
|
12/2/2004 Project:
Win Forms Validating Event
This project shows how to use one validating event
handler for a Windows Form to handle two or more validating events.
|
|
11/23/2004 Article:
Releasing COM Objects With VB.NET
This article discusses the special handling required to release COM
objects used by VB.NET programs.
|
|
11/8/2004 Article:
The Visual Basic �Me� Keyword
This article provides some guidance for using the Visual Basic.NET
�Me� keyword.
|
|
10/31/2004 Project:
Display Assembly Version VB
Here is a project that shows how to use reflection to
display the version number of an assembly (application). Demonstration is
VB.NET using Windows Forms.
|
|
10/20/2004 Project:
Windows Logon VB
Windows API can be used to logon a Windows
user. This project demonstrates how to logon a user using Visual
Basic.NET.
|
|
10/7/2004 Project:
Select Case Multiple Select
The Select Case structure is used to execute one of
several groups of statements, depending on the value of an expression.
This project demonstrates the different possible ways to test the value of an
expression in a Select Case structure.
|
|
9/27/2004 Project:
Programmatically Add Win Forms Panels
This project shows how to programmatically add Win
Forms Panels at runtime including a click handler for each panel added.
|
|
9/15/2004 Article:
Technology Radar Screen - Windows Longhorn
Be prepared. �Technology Radar Screen� articles help you prepare for
new Microsoft technologies that will affect you in the near to not-too-distant
future. This one is about Windows Longhorn.
|
|
9/8/2004 Project:
Format Win Forms DataGrid - NullText
This project shows how to programmatically set the
NullText property of a DataGrid column. Instead of showing Null for every
null value in the data behind a DataGrid you can show a blank or any other
character(s) you use to set the NullText property.
|
|
8/24/2004 Visual Studio 2005 Project:
My Computer FileSystem GetDirectories Method
This is a Visual Studio 2005 Beta 1 project. Here is
a code example that expands on an example found on the 'Shortcuts to
Visual Basic Development with My' help topic found in help for Visual Studio
2005 Beta 1.
|
|
8/2/2004 Article:
Visual Basic Is Operator
This project demonstrates how use the Visual Basic Is
operator.
|
|
7/29/2004 Article:
Clone Main Menu to Create Context Menu
In this article a
ContextMenu for a
RichTextBox will be
created from an
application�s Edit menu.
|
|
7/19/2004 Article:
Get Acquainted With Queue Class
This article introduces the Queue class and provides example code
that demonstrates how to use a Queue object.
|
| 7/12/2004 Article:
Getting Started With the Performance Counters
This article introduces the concept of Windows OS
performance counter objects and provides details about .NET Framework
performance counters.
|
| 7/5/2004 Project:
Startup Path Via Reflection
This project demonstrates how use Reflection and the
Path class to obtain the startup path and directory for an executing assembly
(application).
|
| 6/28/2004 Article:
Determine If An Application Is Installed
Determine if an application is
installed by attempting to open that application�s registry key.
|
| 6/21/2004 Article:
Optimize Procedure Performance
You can optimize your application's performance in
many ways. In this article learn how to optimize performance by the way you
design your procedures.
|
| 6/14/2004 Project:
Mouse Information
This project introduces a few ways to get mouse
information.
|
| 6/7/2004 Article:
SqlDataReader
The SqlDataReader provides a means of
reading a forward-only stream of rows from a SQL Server database. Learn more in
this article.
|
| 5/31/2004 Project:
Drop Shadow Text
This project demonstrates how to draw a string with a
drop shadow effect.
|
| 5/24/2004 Project:
Optimize String Performance
Code that wastefully makes and
discards strings is slow and inefficient. Learn a few ways to optimize
strings in this article.
|
| 5/17/2004 Article:
Optimization - Data Type Width
When
possible in your code use data types that are 32 bits wide to maximize the
performance in your .NET application. Read this article to learn why.
|
| 5/10/2004
How To Create a Thread
This project demonstrates how a simple Visual Basic
.NET application can create and use threads.
|
| 5/3/2004 Article:
VB.NET Sub Main() Procedure
When
your application is executed what does the .NET Runtime use as the starting
point in your VB.NET code? The answer is: the Sub
Main()
procedure. In this article learn more about this necessary and important
procedure and how to use it to your advantage.
|
| 5/3/2004 Article:
Double Buffering Drawing Operations
Double buffering drawing operations
makes painting to the screen more responsive and eliminates flicker.
|
| 4/26/2004 Project:
Memory and Handles Performance Counters
Performance Counters
are Windows OS objects that capture metrics about the performance of hardware
and applications. For example, performance counters can capture performance
metrics for processors, memory, threads, events, and processes. Metrics can be
used to detect problems or to �tune� applications and hardware for maximum
performance.
Download this
project to see a simple demonstration.
|
| 4/19/2004 Article:
OPTION STRICT ON
Do
you want to: Speed up your code? Reduce errors in release versions of your
application. Learn how to use VB.NET correctly? This article shows you
how.
|
| 4/12/2004 Article:
Programatically Mapping DataTables to DataGridTableStyles
How can you map a DataTable from a
DataSet created at runtime to a DataGridTableStyle? This article provides
solution code and an explanation of how it works.
|
| 4/5/2004 Project:
Add Or Subtract Business Days From Date
This demo project provides code that shows how to
ignore non-business days when adding or subtracting days from a date.
|
| 3/29/2004 Article:
Create and Use an Embedded Bitmap Resource
This article explains how to create
and use a Bitmap as an Image resource in an application.
|
| 3/29/2004 Project:
Determine If App Is Installed
This project uses the RegistryKey class to determine
if an application is installed.
|
| 3/22/2004 Project:
Get Paths to Special Folders
How to use the Environment class to get the paths to
Windows special folders.
|
| 3/15/2004 Article:
Meet the Win Forms ListView Class
This article introduces the Windows
Forms ListView class and the related ListViewItem and ListViewSubItem
classes.
|
| 3/8/2004 Project:
ArrayList Merge
Merge
ArrayLists removing duplicates in the
process.
|
| 3/8/2004 Project:
Get Primary Screen Resolution
Learn how to get the resolution of the
primary screen attached to a computer.
|
| 3/1/2004 Article:
Overriding a Control�s ProcessCmdKey Function
In some situations overriding a
control�s ProcessCmdKey function is the best way to intercept and
control command key messages. Learn more...
|
| 3/1/2004 Article:
Some Data Type Changes in VB.NET Part 1
Some data types in previous versions
of Visual Basic have been updated or eliminated in Visual Basic.NET to make
VB.NET compatible with the other .NET programming languages and the .NET
runtime. Learn more...
|
| 2/23/2004 Project:
Optimizing String Performance
Code that
wastefully makes and discards strings is slow and inefficient.
This project examine three examples that show the slow and the
fast way to build strings.
|
| 2/16/2004 Project:
Print Text Files - Win Forms
This VS.NET project provides code that loads and then prints a text
file.
|
| 2/9/2004 Article:
Search For a File Using a WildCard
A .NET application can
programmatically scan a directory for files using the standard wild cards.
Learn how in this article.
|
| 2/9/2004 Code Snippet:
Examine Windows Form Bindings
Here is a code snippet that will allow you to examine
Windows Form Bindings at Runtime.
|
| 2/2/2004 Project:
OpenFileDialog - Open Documents
This VS.NET project provides code that shows how to use an Windows
Forms OpenFileDialog control to locate and open a document in its native
application e.g. Word Doc in Word.
|
| 1/26/2004 Article:
Get Better Acquainted with the DataView Class
The DataView class is very important to every ADO.NET
programmer. Don�t overlook the necessity, flexibility, and power of the
DataView class.
Consider this important fact: When a DataTable is bound to a form control, a
DataView object is used as a �middleman� - whether the programmer explicitly
codes it or not. If you do not code it, the binding process uses the
DataTable�s default DataView behind the scene.... read the article to learn
more.
|
| 1/19/2004 Article:
How to Set a Form�s Initial Screen Location
Opening and positioning forms on a
user�s screen is a common task for VB.NET Windows Forms programmers. This
article provides VB.NET newbies an introduction to this programming task.
For VB.OLD programmers the article includes explanations of how positioning
forms has changed from VB6 to VB.NET.
|
| 1/19/2004 Article:
Debug Database Exceptions with a Try..Catch Block
The .Net Framework namespaces �SqlDB�
and �OleDB� provide two specific classes that represent exceptions that may be
raised when a .Net program attempts to communicate with a database. Details are
returned for failed connections, SELECTS, INSERTS, UPDATES, DELETES and other
failed database commands. Learn more in this article.
|
| 1/12/2004 Project:
Get Drive Information
This VS.NET project provides code that implements a
Scripting COM object and then
uses it to get drive information for the local
computer.
|
| 1/5/2004 Article:
Memory Management: Dereferencing Objects
The
.NET Runtime�s Garbage Collector (GC) feature keeps track of the memory that
each object is allocated, and automatically releases that memory when the
running program no longer references the object. It is your
responsibility as a programmer to ensure your code releases references
to an object as soon as your program is finished with an object. Learn more in
this article
|
| 1/5/2004 Article:
The Memory Mystery
Learn more about how the Common
Language Runtime (CLR) and the Windows Operating System (OS) manage memory.
|
| 12/29/2003 Project:
Color DataGrid Row On Click
This VS.NET project provides code that implements a custom
DataGridColumnStyle object that can be used to highlight a DataGrid column when
it is clicked, or a whole row if all columns in a DataGrid use this class.
|
|
12/22/2003
Project: Evaluate An
Expression With ScriptHost
This VS.NET project provides code that uses the Microsoft ScriptHost
COM object to evaluate an expression. The expression is provided as a
string e.g.
(12
* 3) + 15
ScriptHost
evaluates the string expression and returns a numeric answer.
|
| 12/22/2003 Article:
Get Acquainted with the PrinterSettings Class
The purpose of the
System.Drawing.Printing.PrinterSettings class is obtain information about the
printers installed on a computer and change printer settings. This
article provides an introduction to the PrinterSettings class.
|
| 12/15/2003 Article:
Get Acquainted with the Environment Class
The System.Environment class "provides
information about, and means to manipulate, the current environment and
platform." Learn more by studying the examples in this article.
|
| 12/08/2004 Article:
Get Acquainted with the .NetFramework�s TimeSpan Class
The purpose
of the System.TimeSpan object is to make it very easy to
calculate elapsed time. Use it to calculate a period of time
and extract the days, minutes, seconds, and milliseconds that
have elapsed. Get acquainted with the TimeSpan class through
examples in this article.
|
| 12/08/2004 Article:
The GetValues and GetNames Methods of the Enum Class
There are times when you are creating
classes where you need to know both the value and name of the enumerators in an
Enum. Learn more...
|
| 12/01/2003 Project:
Get IP Address of Your Computer
This VS.NET project provides code that gets the IP address of your
computer.
|
| 11/23/2003 Project:
OpenFileDialog - Open Multiple Files
This VS.NET project provides code that uses a OpenFileDialog control
to open multiple files in a Widows Forms application.
|
| 11/17/2003 Article:
The Attributes Property of FileInfo Class
This article discusses the Attributes property of the
System.IO.FileInfo class and how it is used to get or set file attributes.
|
| 11/27/2003 Article:
Binding Control Properties
You can use data binding to bind a property of a
Windows Forms control to a property of another Windows Forms control property.
Learn more in this article.
|
| 11/13/2003 Project:
Remove Duplicates From a Win Forms ListView
Here are code and a demonstration that show how to
remove duplicate items from a ListView.
|
|
11/04/2003 Project:
Add Gradient Backgrounds to Windows Forms
This VS.NET project provides code that optimizes form drawing and
overrides the form OnPaint event to create beautiful gradient backgrounds
for windows forms.
|
| 10/27/2003 Article:
.NET Framework Convert Class
The Microsoft�.Net class library
includes the Convert class with a complete set of methods for supported
conversions. It provides a language-neutral and generic way to perform
conversions and is available to all languages that target the common language
runtime.
|
| 10/20/2003 Article:
Catch Modifier Keys
You can monitor key strokes to catch
the SHIFT, CTRL, or ALT modifier keys.
Learn how in this quick and easy to understand
article.
|
| 10/13/2003 Project:
Hello Image GetThumbNailImage!
Get Acquainted with the
Image Object's GetThumbnailImage Method
This VS.NET project provides code and a demonstration that loads an
image from disk file and displays the image as a small, medium, and large
Thumbnail image in a PictureBox.
|
| 9/8/2003
A Few Useful String Class Methods
All strings are
derived from th |