CodeGuru Update eNewsletter – June 14th, 2005

CodeGuru Newsletter
June 14, 2005

This newsletter is part of the, EarthWeb, and networks.
___________________________ Sponsors
Wi-Fi Planet Conferences & Expos
newsletters are sent from the domain “”
If configuring e-mail
or Spam filter rules, please use this
domain name (not the entire “from”
address, which varies).



–> Editorial
       – Comments from Tech Ed
       (Product releases, RFID, VSTO, and

–> New Articles on
       ==> Controls

– Autosize a DataGridView to Fit
– [Updated] Capture Live Video from Various Video
– Send Mails from within a .NET 2.0
       ==> Managed
– Using Delegates with Native Function Callbacks in Managed
– Displaying the Images Returned by the RenderStream Method of SQL Server
Reporting Services
       ==> SQL Server
– What’s new in SQL Server 2005

–> Discussion Groups (including Hot
       – Get start/end
positions of currently visible text in
       – How to monitor a queue
from a windows application 
       – Copy
a string to an int

–> Highlighted new articles on

       1. Processing Image Pixels,
Color Intensity, Color Filtering, and Color
       2. Catching Your Breath after
the QUALCOMM BREW Developer Conference
3. Enterprise Service Bus.Integration Demystified

Planet Conference & Expo 2005 – The World’s Largest
Wi-Fi Business Event
– coming to a city near you! These are the
definitive events of the Wi-Fi
industry, where business users
gain the knowledge they need to make
strategic buying decisions
and where the industry charts it future
direction. Don’t miss these
must attend events that are held in San Jose,
Tokyo, and Baltimore.
Register today!

from the

Last week, I spent a lot of time at Microsoft’s Tech Ed conference. This
conference is always great to attend because you can meet with people as well as
learn a great deal of information in the sessions. This year was no exception.
While Bill Gates didn’t attend, Steve Ballmer and Paul Flessner did. Both
presented keynote talks outlining some of the key technologies that Microsoft
has rolled out or will be rolling out in the near future. As I mentioned last
week, there weren’t a lot of surprises; however, a number of items were
mentioned. I’ll be writing more details on these items over the coming weeks.
For now, I’ll highlight a few items here for you:

Connectivity was a centerpiece for Steve Ballmer presentation. While the
catch phrase “New World of Work” seemed goofy to me, it was stated over and over
by Ballmer and Flessner in their presentations. This “new world of work” is the
fact that people need information at any time from anywhere and on any platform.
This can be achieved via connectivity and standardization. Microsoft indicated a
number of products that will help in achieving this “new world of work.” Active
Directory is the tool they indicated would be a key in making this all work.
Additionally, new versions of SQL Server (2005), Visual Studio (2005), and other
products would also help. To that end, Flessner announced that Visual Studio
2005, SQL Server 2005, and BizTalk Server 2006 would all release the week of
November 7th of this year.

RFID has been getting lots of press in the last year or two. Flessner
announced an RFID Infrastructure that should be available in 2006. This will
help to make using RFID in your applications much easier. As an example of using
RFID, they provided all the attendees at Tech Ed a RFID tag. They were then able
to monitor when these tags entered different areas of the convention center.
We’ll cover more on this at CodeGuru in a future article.

Being that you come to CodeGuru, there is a good chance you use Visual
Studio. You can already find a number of articles on the site that talk about
new features in the 2005 version that will be out in November. Some of the
highlights that Flessner mentioned include a 50 to 75% reduction in the amount
of code needed for most common scenarios. Stated a different way, with Visual
Studio 2005, there are a number of common situations (such as working with a
database) that you will be able to code in less than half the number of lines of
code than if you are using an earlier version of Visual Studio. With Visual
Basic, there are many common things that can now be done with a single line of
code (Look for an article on this in the near future!).

Other changes in Visual Studio 2005 include a significant improvement in
performance for 64-bit development. There is also improved smart client
development with the ease of using the Web, yet the power of Windows. There is
also the addition of ClickOnce deployment that allows you to install and update
applications easily over the Web — with a single click! There are also tons of
individual improvements in each of the core language products including Visual
Basic, C#, and C++. In fact, C++ developers gain a lot more this time than they
have in the past. C# guys get new features as well, such as Edit-and-Continue,
generics, partial types, anonymous methods, and more. VB developers will get
similar things as well as a new statements (Using and Continue), new keywords
(Global), the addition of the My namespace, and much more.

SQL Server 2005 is also coming in November with lots of new improvements.
This is the first major update of the database in about five years. You can
expect to see improvements such as database mirroring, failover clustering,
“always online,” snapshot isolation, and much more. You’ll also be able to do
stored procedures using Visual Basic or .NET rather than being forced into using

If you want to check out Visual Studio 2005 or SQL Server 2005, you can check
on the Microsoft site for copies of the latest beta or CTP.

The final topic that I’ll mention in this week’s newsletter is Visual Studio
Tools for Office (VSTO). Microsoft has been pushing this product for several
years. This year, however, they seem to have turned this from what seemed like
an end-user product to one that we, as developers, can take seriously.

Microsoft has included the ability to use Outlook as a part of the Office
products that can be customized using VSTO. This is in addition to Word and
Excel. By using VSTO, you now can embed .NET programming into Outlook. The
result is that you can customize Outlook with business functionality. Let’s face
it, most people spend a good portion of their working day in e-mail. By bringing
business functionality into Outlook (or Outlook functionality into your business
applications), you can steamline your users workflow.This ability to tie
together e-mail, business logic, client information, reporting, and calendaring
can lead to some very interesting applications. As a result, VSTO is now a tool
worth looking into and using. The one draw back is that VSTO only works with the
newer versions of Office.

As a side note, if you have beta 2 of Visual Studio 2005, you will find that
VSTO is also now embedded into the product as additional project types rather
than having you go to Word or Excel. More importantly, you may find that you
don’t have a project type for Outlook. The Outlook piece was not a part of the
beta 2 release, but I’ve been told it can be obtained online. With the addition
of this add-on, you then can start creating Outlook projects as well.

Microsoft is pushing “the new world of work” as a connected world. They are
releasing tools that should help make this possible. They’ve announced a release
date and they’ve shown betas of what is coming. Now it is just a matter of
seeing if November is a real date.

I’ve barely scratched the surface of what was stated and presented at Tech
Ed. Over the coming weeks, you can expect to see even more information on what
was learned at this year’s conference and in meeting with a number of Microsoft
product people one-on-one.

Until next week

Brad Jones,
Microsoft MVP

… Recently Published Books

For those of you keeping up by reading books. The following are just a few of
the new books that have been recently released. If you’ve read any of these,
feel free to write a review to be posted on CodeGuru. See the submission
guidelines at:

–> Beginning .NET Game Programming in VB
      By Weller, Lobao, and Hatton for
      420 pages for

–> Active Directory Field

      “A one-stop shop for your
Active Directory deployment and troubleshooting

      By Laura E. Hunter for
      330 pages for

& Updated Articles on

Following are short descriptions of new articles on CodeGuru. If you are
interested in submitting your own article for inclusion on the site, then you
will find guidelines located at,1on5,1,fka1,909i,jorm,i5r0

This week’s posted CodeGuru articles:

==> Controls – DataGridView

– Autosize a DataGridView to

    By Wilfried Mestdagh
Read about a
little code snippet to show how to autosize the columns of a DataGridView in an
intelligent way to fit after resizing the form.,1on5,1,3s2,5kpn,jorm,i5r0

==> DirectX

– [Updated] Capture Live Video from Various Video

    By Dillip Kumar Kara
captures various video sources from various devices attached to the

==> eMail

– Send Mails from within a .NET 2.0

    By Thiru Thangarathinam
Through a
set of intuitive classes, the release of .NET 2.0 provides excellent support for
sending e-mails. Learn the new ways of sending mail through its System.Net.Mail

==> Managed C++

– Using Delegates with Native Function Callbacks in Managed

    By Tom Archer
Learn how to import native
DLL functions into a Managed C++ application and how to define and pass
delegates for asynchronous processing with callback functions.,1on5,1,m34r,720x,jorm,i5r0

==> Reporting

– Displaying the Images Returned by the RenderStream Method of SQL
Server Reporting Services

    By Malik Asif
out how to display the images in reports rendered in ASP.NET Web pages.,1on5,1,1vgy,6736,jorm,i5r0

==> SQL Server 2005

– What’s new in SQL Server 2005
Mike Gunderloy –
What’s New in SQL Server 2005? The new version of SQL
Server has been in development for five years now. That’s given Microsoft
time to build in a lot of new features. Mike Gunderloy highlights the most
significant enhancements to help you judge whether you should start evaluating a
potential upgrade.,1on5,1,dtf7,3b59,jorm,i5r0


Check out the CodeGuru discussion forums at:,1on5,1,bcr8,cx5j,jorm,i5r0

Forums include Visual C++, General C++, Visual Basic, Java, General
Technology, C#, ASP.NET, XML, Help Wanted, and much, much, more!


Some of the current threads with the most activity are:

==> Get start/end positions of currently visible text in richedit,1on5,1,97rn,5k1q,jorm,i5r0

==> How to monitor a queue from a windows application,1on5,1,a92q,9fer,jorm,i5r0

==> Copy a string to an int,1on5,1,21ip,dvxl,jorm,i5r0

Articles on

Below are some of the new articles that have been posted to

1. Processing Image Pixels, Color Intensity, Color Filtering, and
Color Inversion

    By Richard G. Baldwin –
to write a Java program to control color intensity, apply color filtering, and
apply color inversion to an image. Learn to relate the colors to points on a
color wheel and points in a color cube.,1on5,1,h6tn,68py,jorm,i5r0

2. Catching Your Breath after the QUALCOMM BREW Developer
    By Ray Rischpater –
See what key
information came from the 2005 BREW developer conference.,1on5,1,9q62,55tw,jorm,i5r0

3. Enterprise Service Bus.Integration

    By R Venkatavaradan & Arulazi
Dhesiaseelan –
Enterprises are moving towards standards-based integration
technologies such as ESB, which offers them a highly scalable integration
infrastructure solution. ESB helps enterprises scale in a more rapid fashion,
without compromising reliability and performance. Determine if this is what your
business needs!,1on5,1,at7c,myz,jorm,i5r0

If you are interested in advertising in our newsletters, call Claudia at
information about advertising opportunities, visit

For details on becoming a Commerce Partner, contact David Arganbright
1-203-662-2858 or go to


To learn about other free newsletters offered by or
change your subscription visit

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ network of more than 160 Web sites is organized into 12

Small Business

To find an answer –


Looking for a job? Filling an opening? –
newsletter is published by Jupitermedia Corporation
Copyright (c) 2005
Jupitermedia Corporation. All rights
information on reprinting or linking to Jupitermedia content:

More by Author

Must Read