Sybex

Home Certification IT Administration Architecture & Design
3D Animation & CGI Internet Marketing
Print this page Share

.NET Programming: 10-Minute Solutions

ISBN: 978-0-7821-4253-2
433 pages
December 2003
.NET Programming: 10-Minute Solutions (0782142532) cover image
If you're an experienced programmer finding your way with .NET, then this book is for you.

If your .NET skills are already solid, then this book is still for you.

These ten-minute solutions fill the gaps in your knowledge: from them, you'll learn a lot about the realities of programming with .NET technologies, whether you're writing database applications, web applications, or desktop applications.

But they're also solutions to the problems you're most likely to encounter in each of these areas. Particularly when a project entails new techniques or draws you into a realm outside your expertise, you need quick and reliable answers. Here, a couple of veterans provide them. Based on the popular question-and-answer feature of the DevX website, all are in-depth, code-intensive solutions that explain both the how and the why, helping you past immediate obstacles and ultimately making you a more knowledgeable programmer. Here are some of the solutions you'll find inside:

  • The new ListBox control's data model: how it differs, how to work with it, why it's better
  • The new I/O model: storing and retrieving complete objects with streams
  • Launching and monitoring external programs from VB.NET applications: the Process class and how it improves on classic VB Shell command
  • ADO.NET support for keeping calculated columns up to date automatically
  • Moving data between distributed tiers—and keeping it synchronized—using DiffGrams

Solutions are organized into three categories: general .NET topics that cut across category boundaries, problems that arise when you're building Windows forms, and issues associated specifically with ADO.NET and ASP.NET programming chores. The book contains VB.NET code examples for every solution.

See More

Introduction xi

Windows Forms Solutions 1

Solution 1 ListBox ItemData Is Gone! 2

Solution 2 Create Owner-Drawn ListBoxes and ComboBoxes 16

Solution 3 Upgrade Your INI Files to XML 28

Solution 4 Build Your Own XML-Enabled Windows Forms TreeView Control 48

General .NET Topics 65

Solution 5 Take Advantage of Streams and Formatters in VB.NET 66

Solution 6 File I/O in VB.NET: Avoid the Compatibility Syntax 80

Solution 7 Gain Control of Regular Expressions 86

Solution 8 Add Sort Capabilities to Your .NET Classes 100

Solution 9 A Plethora of XML Choices 109

Solution 10 Where Should I Store That Data? 135

Solution 11 Performing the Most-Requested Conversions in .NET 154

Solution 12 Building Custom Collections in .NET 170

Solution 13 Launching and Monitoring External Programs from

VB.NET Applications 186

Solution 14 Build a Touch Utility with .NET 200

Solution 15 Parse and Validate Command-Line Parameters with VB.NET 212

Solution 16 Monitor Data and Files with a Windows Service 234

ASP.NET Solutions 253

Solution 17 Creating Custom Configuration Settings in ASP.NET 254

Solution 18 Internationalize Your ASP.NET Applications (Part 1 of 2) 265

Solution 19 Internationalize Your ASP.NET Applications (Part 2 of 2) 281

Solution 20 Managing Focus in Web Forms 294

Solution 21 The Missing Message Boxes in ASP.NET 306

ADO.NET Solutions 325

Solution 22 Optimizing and Troubleshooting Database Connections 326

Solution 23 Replacing Recordsets with DataSets 336

Solution 24 Working with Typed DataSets 347

Solution 25 Saving Time with Calculated DataColumns 353

Solution 26 Combining Tables in a DataSet 360

Solution 27 Getting Customized XML from SQL Server 369

Solution 28 XML and the DataSet 380

Solution 29 DataBinding ListBoxes and ComboBoxes 388

Solution 30 Advanced DataBinding 396

Solution 31 Synchronizing DataSets with DiffGrams 403

Solution 32 The 10-Minute Guide to Paging Data 412

Index 423

See More
Russell Jones, Ph.D. is a former reptile keeper and professional musician who now composes computer applications. He has an extensive background in designing and developing interactive computer-based training applications. He's the author of several books on Web development using Visual Basic, ASP, VB.NET and C#. He is currently DevX's Executive Editor.

Mike Gunderloy is the lead developer for Lark Group, Inc., an independent software consultancy in eastern Washington. His other Sybex books include ADO and ADO.NET Programming and Access 2002 Desktop Developer’s Handbook. When not writing code or writing about code, Mike raises tomatoes and turkeys on his small farm.

See More
Download TitleSizeDownload
Download all the code files for the book in .zip format 1.26 MB Click to Download
Download the code files for Chapter 1 in .zip format 23.40 KB Click to Download
Download the code files for Chapter 2 in .zip format 33.28 KB Click to Download
Download the code files for Chapter 3 in .zip format 55.40 KB Click to Download
Download the code files for Chapter 4 in .zip format 40.50 KB Click to Download
Download the code files for Chapter 5 in .zip format 16.45 KB Click to Download
Download the code files for Chapter 6 in .zip format 13.41 KB Click to Download
Download the code files for Chapter 7 in .zip format 14.71 KB Click to Download
Download the code files for Chapter 8 in .zip format 19.37 KB Click to Download
Download the code files for Chapter 9 in .zip format 35.85 KB Click to Download
Download the code files for Chapter 10 in .zip format 42.80 KB Click to Download
Download the code files for Chapter 11 in .zip format 19.96 KB Click to Download
Download the code files for Chapter 12 in .zip format 19.09 KB Click to Download
Download the code files for Chapter 13 in .zip format 14.74 KB Click to Download
Download the code files for Chapter 14 in .zip format 16.04 KB Click to Download
Download the code files for Chapter 15 in .zip format 25.42 KB Click to Download
Download the code files for Chapter 16 in .zip format 32.21 KB Click to Download
Download the code files for Chapter 17 in .zip format 19.20 KB Click to Download
Download the code files for Chapters 18-19 in .zip format 167.38 KB Click to Download
Download the code files for Chapter 20 in .zip format 14.55 KB Click to Download
Download the code files for Chapter 21 in .zip format 53.86 KB Click to Download
Download the code files for Chapter 22 in .zip format 75.60 KB Click to Download
Download the code files for Chapter 23 in .zip format 75.81 KB Click to Download
Download the code files for Chapter 24 in .zip format 84.77 KB Click to Download
Download the code files for Chapter 25 in .zip format 23.00 KB Click to Download
Download the code files for Chapter 26 in .zip format 31.41 KB Click to Download
Download the code files for Chapter 27 in .zip format 26.83 KB Click to Download
Download the code files for Chapter 28 in .zip format 26.04 KB Click to Download
Download the code files for Chapter 29 in .zip format 147.02 KB Click to Download
Download the code files for Chapter 30 in .zip format 28.76 KB Click to Download
Download the code files for Chapter 31 in .zip format 50.15 KB Click to Download
Download the code files for Chapter 32 in .zip format 36.75 KB Click to Download
See More