The Wayback Machine - https://web.archive.org/web/20100906122129/http://www.codeguru.com:80/columns/vb/

    Visual Basic Today


    About the Author

    Paul Kimmel is a freelance writer for Developer.com and CodeGuru.com. He is the founder of Software Conceptions, Inc, found in 1990. Paul Kimmel is available to help you build Visual Basic .NET solutions. You may contact him at pkimmel@softconcepts.com.

    Check out Paul's most recent books, Visual Basic .NET Power Coding, Visual Basic .NET Unleashed, and Advanced C# Programming.


    Searching for Breakpoints in Microsoft Visual Studio 2010

    Microsoft Visual Studio has extensive support for setting breakpoints with extra conditions, including code, and then searching for and managing those breakpoints. Read more to see how to put beakpoints to work for you.

    Understanding Covariance and Contravariance

    There are as many explanations, examples, and mathematical descriptions for covariance and contravariance as you care to explore, but all of this information adds to the confusion. This article shows you why they are important concepts for software developers and how you can leverage variance when you design your code.

    Using Multi-Line Lambda Expressions in VB 2010

    The VB and C# programming teams have merged and you'll start to notice capability features--like Lambda Expressions and automatic properties--that are more similar in these two languages, but both languages are suited for the same kinds of software development.

    Using Auto-Implemented Properties in VB 2010

    Auto-implemented properties in VB 2010 provide developers with the convenience of fields, in terms of how much code you write and the benefit of properties.

    Using Basic File I/O in Visual Basic 2010

    Beginning with basic file I/O concepts this article wraps up by demonstrating how you can use the Dynamic Language Runtime (DLR) in .NET 4.0 to map text file data to objects.

    Querying a Database with LINQ to SQL Using Visual Basic 2010

    LINQ to SQL is one of many valuable implementations of LINQ. Check out this post for information on reading, updating, and managing concurrent updates with LINQ to SQL.

    Dynamic Objects in VB 2010

    Dynamic objects in VB let you bind data to members at runtime without defining a custom mapping class.

    Implementing Self-Reflection with Extension Methods

    Write a reflection mechanism one time to reflect any object or collection; knowing your code's state is the first step in writing bug-free code.

    Lambda Expressions via Sub Routines

    VB2010 supports Sub routine Lambda expressions and multiline expressions, read on to see how to define these little method packages.

    Top Ten Things .NET Developers Will Like About Visual Basic 2010

    Paul Kimmel writes about his favorite top ten new features that are being rolled out with this recent Microsoft update of Visual Basic.

    Threads Made Easy in Visual Basic

    Learn to use the basic parallel operations--multithreading--incorporated into .NET framework 4.0.

    Understanding LINQ's Deferred Execution

    By default LINQ uses deferred query execution. This means you can access the results, change the data and use the same query again. Using Visual Studio 2010, beta 1 and the .NET Framework 4.0 we'll see how to use this to our advantage.

    Using CodeRush in Microsoft Visual Studio

    Learn to use CodeRush in Microsoft Visual Studio to write code faster and easier than ever before.

    Goodbye to Line Continuation Characters

    Say your goodbyes to line continuation characters, with a brief look back at Basic.

    Building Lambda Expressions from Expression Trees

    Learn how to dynamically build and explore Lambda expressions from expression trees.

    Using Where Clauses with LINQ in VB

    Learn about LINQ and all the ways you can use "Where" in your code.

    Getting to know WPF

    Paul takes a look at WPF (Windows Presentation Foundation) to see how it might bridge the gap between Web development and Windows development.

    Incremental Intellisense Improvements in Visual Studio 2010

    Learn about the history of debugging and evolutionary improvements in Intellisense in Visual Studio 2010.

    Declaring Anonymous Types in VB

    Using an anonymous type in VB, which is essential for technologies like LINQ, means that the compiler will generate a class for you based on context and named initializers saving you time and effort. To learn more read on.

    Dynamic Programming with Lambda Expressions

    Add ultimate flexibility and power to your programs with function parameters and Lambda Expressions.

    Uploading an Image and Creating a Thumbnail in ASP.NET

    Follow these simple steps to let users upload image files and display them as thumbnails in ASP.NET.

    Converting Data to XML with LINQ to XML

    Sometimes when you have all kinds of data what you really need is XML. LINQ to XML let's you employ functional construction to convert your data into XML.

    Skins and Themes in ASP.NET

    Using skins and themes make it much easier to quickly, uniformly, and easily change the way web application looks.

    Using a Web Application to Obtain Client-Specific Information

    Obtain client-specific information from your Web application using ActiveX, which only works with Internet Explorer and browsers that have ActiveX extensions.

    Running Custom Tracepoint Macros in Visual Studio

    Programming is hard,debugging is hard. Doing both well is critical to being a good programmer. To make things easier for us Paul Kimmel demonstrates how to run custom Tracepoint with macros.

    Hardware's Dirty Little Secret, or Why Software Can be Mass Produced

    OP-ED: Unlike the Illuminati, the IEEE exists, and they have a secret. This secret helps them turn out shiny MP3 players, phones, and computers with processing power than we programmers can figure out how to use. This is how they do it. When will developers learn the same truths?

    DataBinding a DropDownList in a FormView

    Providing a drop down list in your ASP.NET Web applications help users avoid wasting time with bad data and it's a kinder, gentler thing to do.

    Displaying and Customizing Images from a Database

    Discover how to render an image directly from a database using an IHttpHandler and how to modify the image on its way to the client using GDI+.

    Using IHttpModule to Intercept Every HTTP Request

    Respond to every HTTP request. Just implement event handlers or an IHttpModule (which is a cool way to write a re-deployable solution for multiple projects).

    Good Old OOA, OOD, OOP Techniques are Economically Sound

    How do I hide the unneeded features? Don't cut corners just because people are cutting budgets and staff.

    Writing to the EventLog from a Web Application

    The security-hole testing that hackers engage results in a sparring match where security-conscious companies like Microsoft are forced to—well, make life harder on the rest of us.

    Updating a Database from WinForms Controls, Old School

    Old school programming, whereby the programmer reads control values and writes inline SQL, still works, but it's so 90s. If you are new to WinForms or Web programming but experienced, peruse the article and then master LINQ.

    Using T-SQL CROSS APPLY and OUTER APPLY

    Elevate your SQL game (a little bit) with CROSS APPLY and OUTER APPLY.

    Exploring Cool Features of Devexpress' ASPxGridView

    Devexpress has a commitment to providing amazing ASP.NET (and other controls), such as their latest revision of their ASPxGridView, version 8.3, which supports filtering, grouping, sorting, and much more, with little or no coding on your part.

    Creating a Rounded Panel Control

    Round those corners and make your user interfaces a little jazzier with a rounded rectangle Panel control; a fun chunk of code to incorporate into your application.

    OP-ED: Software Development from Core to Cosmetics

    Few projects end up having too much time. Successfully completing a project often depends on tackling core, significant, and risky aspects of any custom solution first—like the long hard march up hill—and finishing with the trim, or cosmetic work, last.

    Dumping an Object's State with a DynamicMethod

    Emitted code and the DynamicMethod have the benefit of speed and the emitted code can be unloaded when the DynamicMethod goes out of scope, resulting in the best of all worlds.

    Speed Up Your Reflection Processes

    Use Reflection.Emit to speed up Reflection intensive processes by writing one general algorithm that emits a specific solution.

    OP-ED: The Realities of an Uncertain Economy

    When handed a crate of lemons, make lemonade. Success in a tough economic climate is about perspective and attitude.

    Dumping an Object's State with Reflection and Extension Methods

    One general-purpose algorithm, written one time, is a great time saver for programmers.

    Handling that Pesky Windows ControlBox

    Some things that seem hard are actually quite easy, and some things that seem easy take a little work, like that little [X] on a Windows Form, the ControlBox. Learn how to know just when that little bugger is pressed.

    Creating a Most Recents Menu Item with the MenuStrip

    The MenuStrip and ToolStripMenuItem are a little harder to use than the Menu from earlier versions of VB. Walk through exercises using the MenuStrip, ToolStrip, and the Command behavior pattern to encapsulate a Recents menu for your applications that operate on files.

    OP-ED: What Kind of Boss...

    Wisdom is figuring out whether every time you encounter a pointy-headed manager you are going to roll over and save your sanity (and possibly your job) or stand up, be counted, and risk greatness or the guillotine. There is a temporary sense of safety in staying with the herd, but all herd-roads lead to the butcher.

    Inferring an XML Schema from an XML Document

    Let the .NET Framework write your XML Schema document (XSD) for you.

    Adding Attachments to Excel 2007 Email Hyperlinks

    Learn to add attachments to hyperlinks that contain email addresses by using a little bit of VBA.

    OP-ED: Why LINQ to SQL is a Better Option than Straight SQL

    LINQ to SQL eliminates SQL Injection Attacks and is easier to use than straight SQL to boot.

    Creating a Service with Windows Communication Foundation and LINQ to SQL

    The .NET framework is full of small, discrete, and useful classes and big chunky bits. When you start combining the chunky bits, like LINQ to SQL and Windows Communication Foundation, things get interesting real fast.

    Using Stored Procedures and Parameters.AddWithValue

    Developers working at all levels of experience can take advantage of this technique. Discover how to invoke a stored procedure with parameters using the AddWithValue method of the SqlParameterCollection to define SQL parameters in one step.

    Op-Ed: Fish or Cut Bait

    If a person or group does something successfully one time, ten times, or a hundred times, there is an increasingly better chance that group will succeed again. All of the books in the world won't turn a ten year old kid into Gordy Howe or Wayne Gretzky. There is an element of talent. Find the talent.

    LINQ to Entities Preview

    ADO.NET 3.0 and the ADO.NET Entity Framework are designed to let you spend less time writing SQL and database plumbing code and more time working in the space of the problem you are trying to solve.