A Quick Look at XML Literals

XML literals are new to Visual Studio 2008 and Visual Basic. Simply put they enable the incorporation of XML directly into application code. Essentially this allows a quick way to create XML objects. At their core XML literals represent a LINQ to XML object and follow syntax similar to XML 1.0. At run time XML…

2

Selecting a Block of text

Regardless of the new framework features – copy and paste is still one of my favorites. One of my favorite tricks is selecting a block of text. By default normal text selection is line by line. For example it’s not possible to select just the items to the right of the equals sign.   However,…

2

Setting the startup form for a Windows Application

Question: I am new to building Windows forms’ applications and am writing my first application. It’s a basic application that has three different forms. As you can imagine I am building, deigning and architecting the project as I go along. One of these changes is that I want to make a different form than I…

1

A quick look at the lambda expression

The lambda expression is new to Visual Basic and Visual Studio 2008 and part of the new Linq support. A lambda expression is an anonymous function that can contain expressions and statements. Basically it’s a function without a name that calculates and returns a single value. It is combined with the new Func type that…

1

Adding an InfoPath Editor Control to a Windows Form

One of the new features of InfoPath 2007 is the ability to integrate the InfoPath editor into Windows Forms. Within Visual Studio this is done using the Microsoft.InfoPath.FormControl.dll assembly. In this example using Visual Studio 2008, we will create a simple Windows Form application that contains the InfoPath control. Note: This example assumes that you…

3

InfoPath: Accessing template file data

The XMLForm class of the InfoPath managed code objects model provides properties, methods and events to access the XML data in the underlying XML document and form information that includes the form definition file (.xsf). For example, using the following code we can create a message box that displays some of the data that is…

1

Creating an icon in the system tray

A standard part of many Windows forms applications is the system tray icon. Most commonly it is used to provide an application or event status. Tray icons are added to an application using the NotifyIcon control. It includes properties that simplify displaying a System Tray icon and the notification “balloon”. Once you’ve added the control…

7

How To: Live Search 101

I have recently started playing with some of the Live Services available at http://dev.live.com. There are some pretty interesting Web Services they have been putting together. I started playing with the Live Search Service you can find at http://search.dev.com. The following is a simple example to show how to use this service with VB. Note:…

2

Microsoft Visual Basic 2005 Power Packs 2.0

Line and Shape controls, PrintForm component, and Printer Compatibility Library Microsoft Visual Basic 2005 Power Packs 2.0 includes a new set of Line and Shape controls and updated versions of the two previously released Visual Basic 2005 Power Packs, the PrintForm Component and the Printer Compatibility Library. All three are now included in a single…

3

Developing Mobile Applications with the Compact Framework 2.0

Download the PDF here  Overview Cellular phones and PDA’s have changed the way we work. For many people the built in network connectivity, email synchronization and instant on capabilities make these devices an attractive alternative to bulkier laptops.  These types of features combined with enterprise application demands have led to a new generation of Windows…

2