|
Using a union to retrieve the RGB components of a color
|
Total Hit (2943) |
In VB.NET you can create what in C is called a union, i.e. a particular structure where you can access the same memory with different names. Here's how you declare such a structure by using the StructLayout attribute, and specifying that you want to define the structure layout explicitly, namely how
....Read More |
Rating
|
|
|
|
|
|
|
Filter file names on their names or attributes
|
Total Hit (2781) |
The GetFiles and GetDirectories methods of the System.IO.Directory class can take an argument containing wildcards, to filter the result:
«Code LangId=2»
' Display all the *.txt files in C:\DOCS.
Dim fname As String
For Each fname In Directory.GetFiles("c:\docs", "*.txt")
Console.WriteLin
....Read More |
Rating
|
|
|
A Complete guide to .net Framework
|
Total Hit (1670) |
The Microsoft .NET Framework is a platform for building, deploying, and running XML Web services and applications. It provides a highly productive, standards-based, multiple-language environment for integrating existing investments with next-generation applications and services, as well as the agili
....Read More |
Rating
|
|
|
Role-Based Authorization With Forms Authentication
|
Total Hit (1537) |
In Web applications, typically there exist certain parts of the site that only certain individuals, or groups of individuals, can access. For example, imagine an intranet Web site used to administer the content on a company's public Internet Web site, where the public Web site lists products sold by
....Read More |
Rating
|
|
|
How Do I...Pass An Object to a Server By Value?
|
Total Hit (738) |
The Pass an Object to a Server by Reference section illustrated that local objects are always passed by value when you call a remote function. To demonstrate this concept, you need change the previous example.
|
Rating
|
|
|
How Do I...Save a DataSet as XML?
|
Total Hit (1211) |
This sample illustrates how to use XmlDataDocument to save relational data from a DataSet to an XML file. This demonstrates the transition from relational data to XML data.
|
Rating
|
|
|
Remoting Overview
|
Total Hit (1232) |
The common language runtime Remoting infrastructure provides a rich set of classes that allow developers to ignore most of the complexities of deploying and managing remote objects. Even though you are dealing with applications running against different run-time environments, calling methods on remo
....Read More |
Rating
|
|
|
How Do I...Make a ResourceReader?
|
Total Hit (673) |
There are two steps to creating a custom resource reader. The first step is to create a class that implements IResourceReader, which requires a Close method and an implementation for GetEnumerator. The following code example demonstrates creating a basic class that implements IResourceReader.
....Read More |
Rating
|
|
|
How Do I...Apply an XSL Transformation to XML?
|
Total Hit (995) |
This sample illustrates how to apply an Extensible Stylesheet Language Transformations (XSLT) file to an XML document using the XslTransform class. This class implements the World Wide Web Consortium (W3C) W3C XSL Transformations (XSLT) version 1.0 specification. (For further reference, you might wa
....Read More |
Rating
|
|
|
Object Syntax Introduction
|
Total Hit (1795) |
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
|
|
|
Displaying the directory tree using the TreeView control in VB.NET
|
Total Hit (1837) |
This project was created using the .Net Beta 2 Release. It was originally written in VB6 and then rewritten in VB.Net. It teaches how to browse the directory structure and display it using the TreeView control. I make a point of highlighting differences between the VB6 and the VB.Net solutions. Some
....Read More |
Rating
|
|